Page 1 of 1

Susped/Unsuspend a script

Posted: 25 May 2018, 11:57
by rwarshawski
I would like to make a hotkey that suspends a running script, toggling it off and on.
The example in the AHK Help file doesn't work for me:

; Send a Suspend command to another script.
DetectHiddenWindows, On
WM_COMMAND := 0x111
ID_FILE_SUSPEND := 65404
PostMessage, WM_COMMAND, ID_FILE_SUSPEND,,, C:\YourScript.ahk ahk_class AutoHotkey


When I replace "YourScript" the name of the script to suspend and try it, nothing happens. I must say I don't really understand what the numbers in the example mean.


Thanx!

bob