Image recognition not seeing parts of screen

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
archaismic
Newbie
Posts: 9
Joined: Mon Nov 29, 2010 10:54 am
Contact:

Image recognition not seeing parts of screen

Post by archaismic » Mon Nov 29, 2010 11:04 am

when using any of the image recognition commands the program wont see certain parts of my screen.

If>UNDOCKED=true
WaitScreenImage>C:\Users\archaismic\Desktop\EVE macros\Images\outsideStation.bmp,0
Wait>3
Press CTRL
Send>l
Release CTRL
Wait>1
FindImagePos>C:\Users\archaismic\Desktop\EVE macros\Images\station.bmp,SCREEN,0,1,X,Y,NumFound
If>NumFound>0
MouseMove>X_0,Y_0
RClick
Else
Press CTRL
Send>l
Release CTRL
Wait>1
Endif
FindImagePos>C:\Users\archaismic\Desktop\EVE macros\Images\iconDock.bmp,SCREEN,0,1,XArr,YArr,NumFound
If>NumFound>0
MouseMove>X_0,Y_0
LClick
Endif
Endif

that's the specific code but it seem irrelevent

even when using the screen capture tool, when i try to capture the parts of the screen that i'm trying to detect the capture tool comes up with nothing.

i CAN select an area actually outside the edge of the window to capture the image im trying to work with but the background is subject to change for one, and two, even if i control the background image (that image behind the top window that i'm manipulating) it wont see that part of the screen

i CAN also select OTHER parts of the screen that ARE rendered by the GUI i'm working with inside the program

are there just certain things that macro sched can't see when rendered or is there something i'm missing

archaismic
Newbie
Posts: 9
Joined: Mon Nov 29, 2010 10:54 am
Contact:

also

Post by archaismic » Mon Nov 29, 2010 1:18 pm

i haven't tried to actually utilize the fact yet but i'll also mention it... if i take a screen shot it shows everything that i need to use... if i use the old style of find image (ie get screen resolution, take screen shot(haystack), find the image(needle) in the screen shot(haystack), and go from there...

my question is
does this really have any performance effects compared to the SCREEN method?

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

Post by Marcus Tettmar » Mon Nov 29, 2010 6:06 pm

Which version of Macro Scheduler are you running? There was an early release where image recognition could not see "Layered Windows". See:

http://www.mjtnet.com/mswhatsnew.htm
"Version 10.016 15/01/2008: Image Capture and Image Recognition commands now identify and capture "Layered Windows"

There was also an issue in v11 where FindImagePos would fail to capture screens from a remote desktop session when using SCREEN:

"Version 11.1.12 29/06/2009: Fixed: FindImagePos using SCREEN for haystack fails under Remote Desktop/Terminal Server session"

Also, until v12 it didn't work on secondary monitors. It now fully supports multi-monitor setups.

I'm not sure if any of these things have anything to do with your issue, but since you didn't say which version of Macro Scheduler you're using I thought I'd at least mention it.

I haven't seen any issues with image recognition failing to see a part of the screen since the aforementioned fixes and no issues in v12 that I am aware of. Unless it's just a case of timing - trying to capture/monitor the screen too early/too late when the object you're looking for isn't there.

Regarding using screen capture instead of SCREEN. In thoery SCREEN is very slightly faster since you don't have the overhead of storing the capture to file, and then loading it again. But you're unlikely to notice it.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

archaismic
Newbie
Posts: 9
Joined: Mon Nov 29, 2010 10:54 am
Contact:

oops

Post by archaismic » Mon Nov 29, 2010 9:53 pm

yeah that might have helped... i'm using version 12.1.1e Nov 2010... so yeah... it SHOULDN'T be an issue due to an old version lol

archaismic
Newbie
Posts: 9
Joined: Mon Nov 29, 2010 10:54 am
Contact:

anybody

Post by archaismic » Wed Dec 01, 2010 1:09 am

somebody... anybody? anyone else had this problem even? the program is EVE online... and i'm trying to get macro sched to see the undock icon... if anyone else out there also plays eve and is willing to mess with it

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