hardcider09
Joined: 26 Mar 2009 Posts: 15
|
Posted: Sun Jun 14, 2009 8:57 am Post subject: Help! Can't get imagesearch to find simple icon. |
|
|
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??? |
|