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 

Help! Can't get imagesearch to find simple 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: Sun Jun 14, 2009 8:57 am    Post subject: Help! Can't get imagesearch to find simple icon. Reply with quote

I’ve been trying to write a script to click on a tray icon for weeks and can’t get the imagesearch function to work. So I decided to try something more basic and I extracted the “H” icon in the autohotkey file and simply opened it in a viewer so it was in the middle of the screen, and tried to get imagesearch to find it. I can’t get imagesearch to work even in this basic situation.

HELP!!!!

Here’s the imagesearch line in my script:

Code:

ImageSearch, SearchX, SearchY, 447, 347, 556, 406, *w32 *h-1 C:\Outlook Tasks\AutoHotkey_159.ico


I tried to measure the size of the image on the screen by using Window spy and found the image was about 32 pixels wide and 32 pixels high. That’s why I used the modifier *w32 and *h-1.

What am I doing wrong???
Back to top
View user's profile Send private message
Z_Gecko
Guest





PostPosted: Sun Jun 14, 2009 9:04 am    Post subject: Reply with quote

No need for ImageSearch,
check: http://www.autohotkey.com/forum/topic17314.html&highlight=trayicon
Back to top
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