Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Wed Apr 14, 2004 6:33 am Post subject: Improved way to run scripts from TextPad |
|
|
the original idea was from AU3's textpad notes which talk about "Setup an "Execute" tool in TextPad" and "Set Hotkey for the Execute tool ".
basically what it does is configure a hotkey in textpad that when pressed runs the currently loaded AU3 script. it really is a timesaver compared to going to the script's folder and running it from there every time u've made a change.
but the problem with this is that for every type of script (.ahk / .aut / .au3) one has to configure different script and hardcode the script running program's path. not my kind of way!
instead of that running this script will install a hotkey ctrl+1 in textpad that'll run any script that's currently loaded, be it .ahk / .aut / .au3 or even .bat or .cmd. the working is simple, it does "cmd.exe /c start %DosScriptPath%". (the hotkey can be reconfigured in textpad)
i've set it so that the dos window doesn't popup.
Chris this is a nice addition to the textpad script and i'd like to add it there. what say?
(u see i've already considered both OS types)
| Code: | RegWrite, REG_BINARY, HKCU, Software\Helios\TextPad 4\Tools\0, Properties, 000000005680000046000000
RegWrite, REG_SZ, HKCU, Software\Helios\TextPad 4\Tools\0, MenuText, Run Script
RegWrite, REG_SZ, HKCU, Software\Helios\TextPad 4\Tools\0, Command, %comspec%
RegWrite, REG_SZ, HKCU, Software\Helios\TextPad 4\Tools\0, Parameters, %a_space%/c start $DosFile
RegWrite, REG_SZ, HKCU, Software\Helios\TextPad 4\Tools\0, Folder, $FileDir
RegWrite, REG_SZ, HKCU, Software\Helios\TextPad 4\Tools\0, RE,
|
_________________

Last edited by Rajat on Wed Apr 14, 2004 11:05 pm; edited 1 time in total |
|