Jump to content

pixelsearch uses absolute coords


Recommended Posts

Guest samlimster

Hi folks.

I've noticed that the pixelsearch function uses absolute coordinates even if I have the MouseCoordMode set to 0.

Has anyone else noticed this? Have I done something wrong here?

The reason I know this is that I searched for a pure white pixel on my application (which has a white background). I started the search at coords (10, 129). Since the background was white, it should have returned the value of the first pixel (10,129). However, pixelsearch returned the values (11, 178). I checked my desktop which is a black an white photo and sure enough the first occurance of pure white pixels started at (11, 178).

Note that the MouseMove and MouseClick commands work relative to my window (as expected), only pixelsearch appears to be using absolute coords.

Thanks!

sam.

Link to post
Share on other sites
Guest samlimster

Hi again folks..

Sorry, I just figured it out. There is an option called pixelcoordmode where you can specify absolute, or window mode.

Thanks!

sam.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...