AutoHotkey Community

It is currently May 26th, 2012, 7:18 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: June 2nd, 2009, 2:57 am 
Offline

Joined: March 26th, 2009, 4:41 am
Posts: 15
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2009, 5:12 am 
Offline

Joined: November 4th, 2008, 9:23 am
Posts: 1045
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.

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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 2nd, 2009, 5:18 am 
Offline

Joined: March 26th, 2009, 4:41 am
Posts: 15
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. :-)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Alpha Bravo, bobbysoon, BrandonHotkey, Cephei1, Google [Bot], joetazz, Miguel, over21, rbrtryn, SKAN, Xx7 and 75 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