Question

I would like to set the "Scroll Lock key" to be a toggle shortcut to suspend and resume my Autohotkey script. I mean to get all the lines in a currently running ahk script suspended and resumed by a toggle shortcut.

Is this possible?

Was it helpful?

Solution 2

The short, precise answer is that yes, it's possible.

The long, complicated answer is to add the following line to your script

scrolllock:: Pause

OTHER TIPS

Toggle suspend:

f1::suspend

Close the script:

f2::exitapp

Reload the script:

f3::reload

Edit the script:

f4::edit

I find that including this speeds up editing / testing:

back = open the script in notepad
forward = save and exit notepad
refresh = reload

browser_back::edit

browser_forward::

send ^{s}
send !{f4}
return

browser_refresh::reload

add reload at bottom of browser_forward hotkey, i say having it seperate

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top