AutoHotkey Community

It is currently May 27th, 2012, 9:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: January 7th, 2007, 7:10 pm 
Offline

Joined: July 15th, 2006, 7:36 pm
Posts: 31
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...?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2007, 7:23 pm 
Offline

Joined: June 6th, 2006, 3:19 pm
Posts: 1654
Location: Denmark
You could use a timer, which in due time does an exitapp.

_________________
RegEx Powered Dynamic Hotstrings
COM
AutoHotkey 2


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2007, 11:40 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2007, 11:43 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], XstatyK, Yahoo [Bot] and 61 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