Jump to content

Recommended Posts

Posted

Ok $coord = PixelSearch( 100, 100, 1024, 718, 0xFF8000, 1, 2)

SO it starts at (100,100) and searches to (1024,718) but does it go left to right or does it go in a straight line? I hope this makes sense if not I will try to re word it.

Posted

I'm almost certain it goes in from left to right. If no pixels are found in that row, it moves to the next row.

In your case, it will search a pixel and skip 2 and then move on.

Posted

Ok $coord = PixelSearch( 100, 100, 1024, 718, 0xFF8000, 1, 2)

SO it starts at (100,100) and searches to (1024,718) but does it go left to right or does it go in a straight line? I hope this makes sense if not I will try to re word it.

from helpfile:

Remarks

The search is performed left-to-right, top-to-bottom and the first match is returned.

Earlier versions of AutoIt (prior to v3.0.102) used the BGR format for defining color - newer versions use RGB by default but this can be changed using the ColorMode option.

Remember, a typical display at 1024 x 768 has 786432 pixels. Although PixelSearch is optimized, narrowing the search area helps speed up the result.

helpfile is your bestfriend

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
×
×
  • Create New...