Code: Select all
#MaxThreadsPerHotkey 2
NumpadAdd::
toggle:=!toggle
While toggle{
Send q
Sleep 600
}
Return
hello, i had been using this in a game. This is making my character use the healing skill as long as cooldown resets to zero.
Now, I'm enabling this when i enter to the fight and after i die and can't turn it off by pressing numpad add or whatever I've assigned the key.
is there a better way to write this script? cuz it somehow cant stop running at some point and whenever i press the corresponding assigned key it won't stop toggling the script.
******************************************
Plus i had another question.
is it possible to close and open the related ahk file with another script?
lets say i use the script above and the script I'm asking will close and open the script above named test.ahk for example
it should close the current running test.ahk file and re run it?