AutoHotkey Community

It is currently May 27th, 2012, 2:04 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Exit Script
PostPosted: January 31st, 2010, 7:17 pm 
Offline

Joined: January 31st, 2010, 7:15 pm
Posts: 6
First of all, I am a beginner, so I hope you understand if you think the question is stupid. :oops:

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

Please help! :?:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 7:19 pm 
Code:
a::exitapp
?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 7:24 pm 
Offline

Joined: January 31st, 2010, 7:15 pm
Posts: 6
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%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 7:32 pm 
Offline

Joined: October 26th, 2009, 6:29 am
Posts: 362
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 7:37 pm 
Offline

Joined: January 31st, 2010, 7:15 pm
Posts: 6
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! :( :oops:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 7:39 pm 
Offline

Joined: January 31st, 2010, 7:15 pm
Posts: 6
Well it doesn't seem to be working...

It automatically closes after one use..

And sorry for being rude :cry:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 7:51 pm 
Offline

Joined: October 26th, 2009, 6:29 am
Posts: 362
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 8:19 pm 
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. :lol:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 9:11 pm 
Offline

Joined: January 31st, 2010, 7:15 pm
Posts: 6
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. :lol:


Well I looked up exit script for autohotkey and found something but it didn't work..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2010, 9:12 pm 
Offline

Joined: January 31st, 2010, 7:15 pm
Posts: 6
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!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: engunneer, Google [Bot], nimda, sjc1000 and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group