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 

Leave message box after program exit

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



Joined: 15 Jul 2006
Posts: 31

PostPosted: Sun Jan 07, 2007 6:10 pm    Post subject: Leave message box after program exit Reply with quote

I'm sure this has been done a million time, but I can not find it by searching the forum.

I'd like to leave a information box up after program exit. Preferably one that only last 30 seconds or so.
I realize I could have it call another script, but was wondering if there is another way...

Possible a call to windows to display it???

I realize I could also simply have it open notepad and type the message in.. Again,,, a better way...?
Back to top
View user's profile Send private message
tonne



Joined: 06 Jun 2006
Posts: 1651
Location: Denmark

PostPosted: Sun Jan 07, 2007 6:23 pm    Post subject: Reply with quote

You could use a timer, which in due time does an exitapp.
_________________
RegEx Powered Dynamic Hotstrings
COM
AutoHotkey 2
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Sun Jan 07, 2007 10:40 pm    Post subject: Reply with quote

Well, after program exit, Windows automatically closes all windows this program has created... So, as you guessed, you have to run another program (small secondary script, some utility) to display the message.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Sun Jan 07, 2007 10:43 pm    Post subject: Reply with quote

Does this have the desired effect? (Try running it and then exiting it through the tray menu.)

Code:
#Persistent
OnExit,ExitSub
return

ExitSub:
Msgbox Don't make me go, please! I can cook!
ExitApp
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