| View previous topic :: View next topic |
| Author |
Message |
hardcider09
Joined: 26 Mar 2009 Posts: 15
|
Posted: Tue Jun 02, 2009 1:57 am Post subject: How to determine the NUMBER of tray icon? |
|
|
Can someone help? I'm a newbie trying to use a script to click on a tray icon. I got the script from this post: http://www.autohotkey.com/forum/topic23148.html
The instructions say to enter "the number of the tray icon that you need to click, followed by a space and then the filename containing the icon".
How do I find out the NUMBER of the tray icon I want to click?
Thanks much in advance. |
|
| Back to top |
|
 |
animeaime
Joined: 04 Nov 2008 Posts: 1045
|
Posted: Tue Jun 02, 2009 4:12 am Post subject: |
|
|
My recommendation would be to post your question in the original thread (the one you posted). This way the author of the code might respond (or someone who uses the script). They will probably be much more help than the rest of us.
However, from what I can tell, the number is the icon's group number (see the ImageSearch command, the ImageFile parameter.
| Click a tray icon wrote: | | Code: | ; the number of the tray icon that you need to click, followed by a space and then the filename containing the icon :
iconstr = 3 C:\Program Files\Winamp\Plugins\gen_delete.dll
;replace this with your filename. I used beardboys Icon Browser - http://www.autohotkey.com/forum/viewtopic.php?t=5587&highlight=iconviewer - to find the icon inside the dll |
|
So, it looks like beardboy's Icon Browser can be used to retrieve the icon number you need.
Hope that helps. _________________ As always, if you have any further questions, don't hesitate to ask.
Add OOP to your scripts via the Class Library. Check out my scripts. |
|
| Back to top |
|
 |
hardcider09
Joined: 26 Mar 2009 Posts: 15
|
Posted: Tue Jun 02, 2009 4:18 am Post subject: |
|
|
Both excellent suggestions, thank you.
I'd done the latter and couldn't seem to get find a meaningful number but I will try again.
I will post the question to the original thread now.  |
|
| Back to top |
|
 |
|