AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Keystroke to stop an infinite loop?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
cgcaver
Guest





PostPosted: Fri Aug 20, 2004 6:41 pm    Post subject: Keystroke to stop an infinite loop? Reply with quote

is there a way to break an infinitely looped script?
Back to top
BoBo
Guest





PostPosted: Fri Aug 20, 2004 7:05 pm    Post subject: Reply with quote

Ctrl+Alt+Del Exclamation Cool
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Fri Aug 20, 2004 11:02 pm    Post subject: This is how... Reply with quote

Put this line in the end of your script:

Code:
Esc::ExitApp


This will make the Escape button on your keyboard stop the whole script.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Aug 20, 2004 11:57 pm    Post subject: Reply with quote

In case you don't know, you can also pause or exit the script from its tray menu, even if it's busy (unless it's sending a lot of keystrokes or mouse movements, which might make it hard to get to the tray).

In addition to the Exit hotkey mentioned above, you can also bind a hotkey to pause the script:
^!p::pause ; Ctrl-Alt-P
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group