Get help with using AutoHotkey and its commands and hotkeys
3 posts • Page 1 of 1
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.
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
Thanks for the help! I used your recommendation and got my script working.
Who is online
Users browsing this forum: newbieforever and 71 guests