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 

Exit Script

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



Joined: 31 Jan 2010
Posts: 6

PostPosted: Sun Jan 31, 2010 6:17 pm    Post subject: Exit Script Reply with quote

First of all, I am a beginner, so I hope you understand if you think the question is stupid. Embarassed

I need help with an Exit Script. I need a code that exits the script on the press of a button.

Please help! Question
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Jan 31, 2010 6:19 pm    Post subject: Reply with quote

Code:
a::exitapp
?
Back to top
nvpdude



Joined: 31 Jan 2010
Posts: 6

PostPosted: Sun Jan 31, 2010 6:24 pm    Post subject: Reply with quote

Anonymous wrote:
Code:
a::exitapp
?


Hmm... doesn't seem to be working..

Heres the script, add the exit code in a quote..

Quote:
MButton::
Click
MouseGetPos, xposi, yposi
yposi+=25
xposi+=5
Click %xposi%, %yposi%
xposi-=5
yposi-=25
MouseMove, %xposi%, %yposi%
Back to top
View user's profile Send private message
Ace Coder



Joined: 26 Oct 2009
Posts: 361

PostPosted: Sun Jan 31, 2010 6:32 pm    Post subject: Reply with quote

Code:
^x::ExitApp  ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script.


P.S.NEVER act as commanding and rude as you just did, this is highly annoying and ungrateful of you. We don't have to help you.

Ungrateful Guest wrote:
Heres the script, add the exit code in a quote..


And in the future: READ THE MANUAL!
_________________
Check out the new AHK forum competition!
Back to top
View user's profile Send private message
nvpdude



Joined: 31 Jan 2010
Posts: 6

PostPosted: Sun Jan 31, 2010 6:37 pm    Post subject: Reply with quote

Ace Coder wrote:
Code:
^x::ExitApp  ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script.


P.S.NEVER act as commanding and rude as you just did, this is highly annoying and ungrateful of you. We don't have to help you.

Ungrateful Guest wrote:
Heres the script, add the exit code in a quote..


And in the future: READ THE MANUAL!


Sorry for that! Sad Embarassed
Back to top
View user's profile Send private message
nvpdude



Joined: 31 Jan 2010
Posts: 6

PostPosted: Sun Jan 31, 2010 6:39 pm    Post subject: Reply with quote

Well it doesn't seem to be working...

It automatically closes after one use..

And sorry for being rude Crying or Very sad
Back to top
View user's profile Send private message
Ace Coder



Joined: 26 Oct 2009
Posts: 361

PostPosted: Sun Jan 31, 2010 6:51 pm    Post subject: Reply with quote

You need to add a return above the ExitApp hotkey.
Code:
;I am code
;I am more code
;I am still code
;Where did you learn to be code?
Return  ;Tells the script to stop executing code and wait.

^x::ExitApp ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script.


Sorry for being rude but I was a little upset at something else.
Have a good day!
Cheers
_________________
Check out the new AHK forum competition!
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Jan 31, 2010 7:19 pm    Post subject: Reply with quote

Woah... Who was being commanding and rude here? I agree he should have read the manual and searched it for Exit first or the forums but wow.... way to explode on the dude. Laughing
Back to top
nvpdude



Joined: 31 Jan 2010
Posts: 6

PostPosted: Sun Jan 31, 2010 8:11 pm    Post subject: Reply with quote

Anonymous wrote:
Woah... Who was being commanding and rude here? I agree he should have read the manual and searched it for Exit first or the forums but wow.... way to explode on the dude. Laughing


Well I looked up exit script for autohotkey and found something but it didn't work..
Back to top
View user's profile Send private message
nvpdude



Joined: 31 Jan 2010
Posts: 6

PostPosted: Sun Jan 31, 2010 8:12 pm    Post subject: Reply with quote

Ace Coder wrote:
You need to add a return above the ExitApp hotkey.
Code:
;I am code
;I am more code
;I am still code
;Where did you learn to be code?
Return  ;Tells the script to stop executing code and wait.

^x::ExitApp ;Place this code at the bottom of your script, then run the script, then press Ctrl+x to exit the script.


Sorry for being rude but I was a little upset at something else.
Have a good day!
Cheers


Thanks it works!
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