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 

how do u stop the script and exit out the autoHotkey?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
friend



Joined: 26 Jun 2007
Posts: 43

PostPosted: Tue Jul 03, 2007 6:57 pm    Post subject: how do u stop the script and exit out the autoHotkey? Reply with quote

I think I use too much of Goto and Gosub because i want to organize the code, but now my code is executing so weird over and over so is there a command that I can use to stop script execution entirely or AutoHotkey itself?

thank in advance
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Tue Jul 03, 2007 8:13 pm    Post subject: Reply with quote

For that purpose, ExitApp would do the job. You can define with OnExit what should happen if the script terminates.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dave72



Joined: 27 Jan 2007
Posts: 30
Location: Canada

PostPosted: Tue Jul 03, 2007 8:27 pm    Post subject: Reply with quote

You should be able to right click on the taskbar icon, there is an Exit there (and if running as an ahk (as opposed to an exe), you can get display of variable values, commands currently executed etc.. great for troubleshooting stuff !)
Back to top
View user's profile Send private message
friend



Joined: 26 Jun 2007
Posts: 43

PostPosted: Tue Jul 03, 2007 8:31 pm    Post subject: Reply with quote

thank you guys
Back to top
View user's profile Send private message
silveredge78



Joined: 25 Jul 2006
Posts: 481
Location: Midwest, USA

PostPosted: Tue Jul 03, 2007 9:02 pm    Post subject: Reply with quote

You can also define a hotkey in your script to ExitApp. Something like:

Code:
^Esc::ExitApp

_________________
SilverEdge78
Back to top
View user's profile Send private message
Display posts from previous:   
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