ToggleRun runs programs on startup when Capslock,Numlock, Scrolllock or Insert is down, or up.
You can also use RunWait instead of Run to wait for a program to end before running the next in the group.
Edit the script and place it in your startup folder. It is written in AutoHotkey from
www.autohotkey.com.
Skrommel
;ToogleRun.ahk
; Run programs on startup when Capslock, Numlock, Scrolllock or Insert is down
; Usage: Place the script in your startup folder
; Format: Run, Target [, WorkingDir, Max|Min|Hide ]
;Skrommel @ 2008
If (GetKeyState("Capslock","T")=1)
{
Run,Notepad.exe C:\Test1.txt
Run,Paint.exe C:\Test2.bmp
Run,Write.exe C:\Test3.wri
}
Else
{
Run,Calc.exe,,Min
Run,IExplore.exe,,Max
}
If (GetKeyState("Numlock","T")=1)
Run,Calc.exe,,Min
If (GetKeyState("Scrolllock","T")=1)
Run,Pbrush.exe C:\Windows\Bubbles.bmp,,Max
If (GetKeyState("Insert","T")=1)
Run,Write.exe