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 

How to determine the NUMBER of tray icon?

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



Joined: 26 Mar 2009
Posts: 15

PostPosted: Tue Jun 02, 2009 1:57 am    Post subject: How to determine the NUMBER of tray icon? Reply with quote

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
View user's profile Send private message
animeaime



Joined: 04 Nov 2008
Posts: 1045

PostPosted: Tue Jun 02, 2009 4:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
hardcider09



Joined: 26 Mar 2009
Posts: 15

PostPosted: Tue Jun 02, 2009 4:18 am    Post subject: Reply with quote

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. Smile
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