ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

ReRun - Run a program repeatedly on hotkey

(1/1)

justice:
When a certain hotkey is pressed, ReRun asks you for a program and runs it. From then on, everytime this hotkey is pressed, the program is run again.

This is useful if you working to improve a script/ ahk file / batch file and need to test it repeatedly, or are needing to manually compile/deploy/run commands repeatedly. Using rerun is faster than finding the active window and clicking on a program to launch it.

--- Code: Autohotkey ---; Change line 6 to a new hotkey: see http://www.autohotkey.com/docs/Hotkeys.htm#symbols #NoEnv SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.§::if program =        FileSelectFile, program, 3, , Open a file, Programs (*.bat; *.com; *.exe)if program <>  {        SplitPath, program ,, OutDir        SetWorkingDir %OutDir%         RunWait, %program%}return
Note: the default hotkey is §, which is handy if you have a mac uk keyboard, but annoying if you don't. So change the start of line 5.

cranioscopical:
Thanks, I can use that.

justice:
No problem, it's one of these programs that is not apparently useful until you're in the situation where you have to constantly check something, like website design (use rerun in combination with Frep to replace certain variables and FtpSync to upload the files to your website with the press of a key.

lanux128:
thanks justice..  :up: a situation just arose for this tool as i'm writing a batch file to update some files from the internet to local host.

Navigation

[0] Message Index

Go to full version