Susped/Unsuspend a script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rwarshawski
Posts: 4
Joined: 10 May 2016, 09:52

Susped/Unsuspend a script

25 May 2018, 11:57

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 249 guests