0
Hi I used to use at the beginning of my Autohotkey script toggle between totally disable it and totally enable it scrolllock:: Pause
but it doesn't work anymore, and I have realize that if I set it, it will not let me set variables. e.g.
scrolllock:: Pause
var := 29 ; <--- this var will not be set cuz the line above
It will only be set if I remove the line above, I have tested it.
I have tried to change it to...
f12::
Pause
Suspend
return
but it doesn't work with the scrollock key I guess I need to set a keystate
How can I do this, thanks Advanced.
Hi user3419297 once the AHK script is running, I use the hotkey (scroll Lock) to pause it, but its hotkeys are still functional (they are still working) so if I press
space & e
I get the script to run some actions. I have noticed that the hotkeys trully get disabled only when I right click the AHK script icon on the taskbar and chooseSuspend Hotkyes
I would like suspend and renabled AHK hotkeys using thescroll Look
key. Hot can I do taht?? – litu16 – 2016-11-28T00:08:47.217Replace "scrolllock:: Pause" with "scrolllock:: Suspend". – user3419297 – 2016-11-28T08:00:53.127