 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
fork4k
Joined: 19 Nov 2007 Posts: 1
|
Posted: Mon Nov 19, 2007 9:05 pm Post subject: imagesearch...a better understanding? |
|
|
Hi There!
Love autohotkey!!! So useful!
Question on imagesearch...does anyone know how the internals of imagesearch work? Does it delegate to pixelgetcolor?
I'm facing a very peculiar situation (I seem to have found a similar post on imagesearch previously but I'm not sure if it's the same problem).
The scenario:
I'm trying to automate tasks on a Flash UI. Since I can't get handles into the flash controls, I'm taking images of the various buttons I need to click and then calling imagesearch to move the mouse to the appropriate control (I don't want to hard-code the controls since the layout is prone to change).
The problem:
If I take images on one machine (say a lenovo T60p) and use those images to run the script on a second machine (say a lenovo T40), it doesn't work. imagesearch cannot seem to find any of the images on the screen. But if I re-do the images on a T-40, it works fine. Also, if I take images from a T60p using ATI FireGL V5250 and use it on a T60p using ATI FireGL V5250, same problem...it can't find any of those images. Thoughts?
Environment details:
Windows XP
Resolution on all machines: 1400x900
Color on all machines: 32 bit
Bitrate of saved .bmp images: 24-bit
Any help much appreciated!! Either in terms of pointing me so I can understand how imagesearch works under the hood or a resolution to the problem would be awesome!!! |
|
| Back to top |
|
 |
Lemming
Joined: 20 Dec 2005 Posts: 158 Location: Malaysia
|
Posted: Tue Nov 20, 2007 11:44 am Post subject: Rendering differs |
|
|
Imagesearch works exactly is it should. Heck, I even use it in MMOs.
The problem is caused by how the different graphics cards, and Flash render images.
Though it may look the same to you, screen images on different systems can have slightly different colors - enough to foil Imagesearch, which defaults to finding exact color matches.
One solution is to use the variation option in Imagesearch. Start with *1 or *2 and work your way up. But don't use too large a variation or you'll match other stuff.
Another thing you should do is to save your search images in a non-lossy format, eg BMP.
-Lemming |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|