Bobs16 Posted February 23, 2008 Posted February 23, 2008 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.
aommaster Posted February 23, 2008 Posted February 23, 2008 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.
Bobs16 Posted February 23, 2008 Author Posted February 23, 2008 Ya that is exactly what I was thinking thank you very much.
Kilhian Posted February 24, 2008 Posted February 24, 2008 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:RemarksThe 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now