FindImagePos for selected window doesn't work.

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
albert27
Newbie
Posts: 3
Joined: Thu Dec 15, 2011 3:48 pm

FindImagePos for selected window doesn't work.

Post by albert27 » Thu Dec 15, 2011 4:21 pm

I've been testing with FindImagePos to only look for the image in a certain window. In this case it's Market Analyzer.

FindImagePos>needlePic,WINDOW:Market Analyzer,0,1,XArr,YArr,NumFound

My code works, but it also finds the image outside of the window. For instance, I would open up the image in windows explorer in preview, and the code will find it. Even when it's outside of the window specified.

So it looks like it's scanning the whole screen, rather than the specified window. I need it to only scan the window.

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

Post by Marcus Tettmar » Fri Dec 16, 2011 3:01 pm

I have verified that this is the case and is a bug. Should clearly only be looking within the bounds of the window. I've added it to the work list to get sorted ASAP.
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