Help with AutoIT.

Posts 12 of 2 · Page 1 of 1
Help with AutoIT.
Is there a way to bind a key to stop the script upon pressing it? Sometimes I need to stop my bot while its running but so far it's been "wait til it stops doing inputs and close it from task manager as fast as I can"
I put

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

In my script, but pressing either of those does nothing to the script and it keeps running. Tried a few google searches which resulted in those, I feel like there's something I'm missing here, any help?
Quote Originally Posted by Roxarok View Post
Is there a way to bind a key to stop the script upon pressing it? Sometimes I need to stop my bot while its running but so far it's been "wait til it stops doing inputs and close it from task manager as fast as I can"
I put

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

In my script, but pressing either of those does nothing to the script and it keeps running. Tried a few google searches which resulted in those, I feel like there's something I'm missing here, any help?
You have to actually write the function those hotkeys are calling...
Posts 12 of 2 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?