Image match with identical images on screen

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Cage
Newbie
Posts: 2
Joined: Tue Nov 15, 2011 7:58 pm
Location: Moorhead, MN US

Image match with identical images on screen

Post by Cage » Thu Dec 19, 2013 4:22 am

Hello

My problem:

Checking for image successfully BUT sometimes there are multiple identical images and this will cause an error trying to capture coordinates for mouse pointer to go to.

Note: When there are multiple identical images, I can select any one of them to achieve my results so this doesn't matter which is selected.

Ideas:

1. Is there a way to select the first image it matches and pull coordinates for mouse from it?

Also

2. Is there a way to check a specific region for image,
the region can be hard coded; example: 3350,210,3590,225


Thank for for any direction

Best Regards
Cage
The greater the risk, the greater the potential gain....

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Dec 19, 2013 4:02 pm

If you use EXACT FindImagePos returns a 0 based array of ALL matches. So for the first use index 0.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts