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 

Change the Tray Icon when ahk is executing commands or hangs

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



Joined: 11 Feb 2005
Posts: 153
Location: Germany, Niestetal

PostPosted: Sat Feb 26, 2005 7:04 pm    Post subject: Change the Tray Icon when ahk is executing commands or hangs Reply with quote

I've got the idea to change the color (or the symbol) of ahk's Tray Icon to show, when a script is just executing commands or hangs.

When ahk is in no-load running the default Icon should be shown.

Has someone an idea how to realize this?

... or is there a smarter way to see when the script hangs
Back to top
View user's profile Send private message
Serenity



Joined: 08 Nov 2004
Posts: 1230

PostPosted: Sat Feb 26, 2005 7:27 pm    Post subject: Reply with quote

You could specify using different tray icon at the beginning of a section of code and at the end of the routine change it back again just by specifying different icons/paths with the menu, tray, icon commands.

For the hanging, if there is a detectable errorlevel per routine, you could add try something like:

Code:
if errorlevel <> 0
menu, tray, icon, hang.ico, 1
else
menu, tray, icon, default.ico, 1

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Andi



Joined: 11 Feb 2005
Posts: 153
Location: Germany, Niestetal

PostPosted: Sun Feb 27, 2005 1:01 am    Post subject: Reply with quote

Thank you. This would be a way!!! Very Happy

...the only downer is, that I've to enframe every thread separately. I thougt that I could make use of the auto-execute section, but this doesn't work, cause each thread retains its own value of ErrorLevel Sad

...but one should't complain so much Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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