Results 1 to 2 of 2
  1. #1
    Roxarok's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    53
    Reputation
    10
    Thanks
    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?

  2. #2
    DanK's Avatar
    Join Date
    Aug 2006
    Gender
    male
    Location
    Arizona
    Posts
    2,892
    Reputation
    100
    Thanks
    3,632
    My Mood
    Devilish
    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...
    PLAYING RIFT!