| View previous topic :: View next topic |
| Author |
Message |
Andi
Joined: 11 Feb 2005 Posts: 153 Location: Germany, Niestetal
|
Posted: Sat Feb 26, 2005 7:04 pm Post subject: Change the Tray Icon when ahk is executing commands or hangs |
|
|
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 |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 1230
|
Posted: Sat Feb 26, 2005 7:27 pm Post subject: |
|
|
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 |
|
 |
Andi
Joined: 11 Feb 2005 Posts: 153 Location: Germany, Niestetal
|
Posted: Sun Feb 27, 2005 1:01 am Post subject: |
|
|
Thank you. This would be a way!!!
...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
...but one should't complain so much  |
|
| Back to top |
|
 |
|