Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases
You last visited: Today at 05:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Run Box Replacement

Discussion on Run Box Replacement within the Coding Releases forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 11
Received Thanks: 0
Run Box Replacement

Here's a run box replacement. If you run a command the box will stay be displayed. Until you press ESC or cancel.

Changes:
added support for resolution: 1024x768
(but I added static positions, easier)
added Google search
To open a website enter this (example
Code:
$i www.autoitscript.com
Some other commands:
windir
sysdir
progdir
desktop
mydocs
$g keywords
$b|file(s)
First is the Windows directory.
Second is the system directory.
Third is the Program Files directory.
Fourth is the desktop folder
Fifth is the "My Documents" folder
Sixth is search on Google for keywords
Example:
Code:
$g James Bond
Last:
You can create backups of file(s). The backup will be placed in your windows directory, in a folder backup. With the extension .backup.
You can't backup files with no extension, but you can backup multiple files.
See examples below

Backup examples:
Code:
$b|desktop\important.doc
$b|C:\scripts\test.au3
$b|sysdir\*.exe
$b|progdir\AutoIt3\Examples\English\*.au3
Last:
You can create backups of file(s). The backup will be placed in your windows directory, in a folder backup. With the extension .backup.
You can't backup files with no extension, but you can backup multiple files.
See examples below
And it works perfect
Code:
$g_szVersion = "Commandbox"
If WinExists($g_szVersion) Then
WinActivate("Commandbox")
Exit
EndIf

AutoItWinSetTitle($g_szVersion)


AutoItSetOption("RunErrorsFatal", 0)

If @DesktopWidth = "1280" Then
  $pos = 810
Else
  $pos = 563
EndIf

$Command = InputBox("Commandbox", " ", "", "", 250, 110, 0, $pos)

If $Command <> "" Then
  While $Command <> ""
   Command($Command)
$Command = InputBox("Commandbox", " ", "", "", 250, 110, 0, $pos)
  WEnd
  Exit
Else
  Exit
EndIf

Func Command($Command)

;------------ Internet
$Match = StringInStr($Command, "$i")
If $Match > 0 Then $Command = StringReplace($Command, "$i", "iexplore")

;------------ Google
$Match = StringInStr($Command, "$g")
If $Match > 0 Then $Command = StringReplace($Command, "$g ", "iexplore www.google.com/search?q=")

;------------ System directories
$Sysdir = StringInStr($Command, "sysdir")
$Windir = StringInStr($Command, "windir")
$Progdir = StringInStr($Command, "progdir")
$Desktop = StringInStr($Command, "desktop")
$MyDocs = StringInStr($Command, "mydocs")

If $Windir > 0 Then $Command = StringReplace($Command, "windir", @WindowsDir)
If $Sysdir > 0 Then $Command = StringReplace($Command, "sysdir", @SystemDir)
If $Desktop > 0 Then $Command = StringReplace($Command, "desktop", FileGetShortName(@DesktopDir))
If $MyDocs > 0 Then $Command = StringReplace($Command, "mydocs", FileGetShortName(@MyDocumentsDir))
If $Progdir > 0 Then $Command = StringReplace($Command, "progdir", FileGetShortName(@ProgramFilesDir))

;------------ Backup
$Match = StringInStr($Command, "$b")
If $Match > 0 Then
Backup($Command)
Return
EndIf

Run($Command)
If @Error = 1 Then Run(@ComSpec & " /c Start " & $Command, "", @SW_HIDE)

EndFunc;---Run command

Func Backup($Command)
$Command = StringSplit($Command, "|")
$Backup = FileGetShortName($Command[2])

$Filename = StringSplit($Backup, "\")
$Filename = $Filename[$Filename[0]]

$Folder = @WindowsDir & "\backup"
DirCreate($Folder)
$Folder = $Folder & "\"

FileCopy($Backup, $Folder & $Filename & ".backup")

$Command = ""
EndFunc

Exit
Liented is offline  
Reply


Similar Threads Similar Threads
car replacement
03/12/2013 - Need for Speed World - 2 Replies
has anyone looked into the format of TEXTURES.BIN and GEOMETRY.BIN to see what the difference is between NFS:MW/NFS:Carbon to see if we can some of the older car replacement mods to work in world ? worlds engine should not be all the differnt from MW so it might be possible to get a mod-loader working I been messing about unpacking stuff with bin2ase but haven;t been getting anyware I think someone needs to go though and find the new offsets for the latest rendition of eas .BIN
replacement bypass.dll?
05/02/2012 - S4 League - 1 Replies
I've noticed the bypass everybody keeps pointing to has been closed, as well as all of his releases. (Prolly going to package and sell it to us now :/ ) think his name was omidar? anyways, i was wondering if there was any other bypassers?
Replacement
04/01/2012 - CO2 Private Server - 12 Replies
I need some ideas about an event replaces gw till i find the bug and fix it. Anything guys =].
Sandboxie replacement
09/13/2011 - Cabal Online - 1 Replies
hi there guy i need to find a replacement for sanboxie any 1 got a good one that can point me there
replacement
11/01/2008 - Kal Online - 7 Replies
since kal is dead a long time i'm wanna know something what do you think is a good replacement for kal what do you play after stoped kal ? i stoped half a year now but dunno some cool other games :P post a list.



All times are GMT +1. The time now is 05:42.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.