Suspend Specific Sections

Get help with using AutoHotkey and its commands and hotkeys
battler82004
Posts: 2
Joined: 15 May 2018, 19:05

Suspend Specific Sections

15 May 2018, 19:42

I am trying to create an AutoHotkey script that will allow me to use WASD to move my mouse, I also want this section of the script to have the ability to be toggled with Scroll Lock. I know that this would be fairly easy to do with an extra AHK script, however I'd like to need only one script that can do all of my tasks. Can I toggle the suspension of this section with scroll lock? Any suggestions as to how to toggle this section of the script would be greatly appreciated.
swagfag
Posts: 1088
Joined: 11 Jan 2017, 17:59

Re: Suspend Specific Sections

16 May 2018, 01:08

Surround the hotkeys you wish to make toggleable with #If yourVarName, have scroll lock toggle the value of your var var := !var. See the docs on directives to figure out how #If works
battler82004
Posts: 2
Joined: 15 May 2018, 19:05

Re: Suspend Specific Sections

16 May 2018, 18:49

Thanks for the help! I used your recommendation and got my script working.

Return to “Ask For Help”

Who is online

Users browsing this forum: newbieforever and 71 guests