(02-11-2015, 12:10 AM)Henk500 Wrote: I had some issues to... the x coordinate was not the coordinate i expected.
in my screenshot, $x=1 was the 3rd pixel.. I expected $x=1 to be the 2nd pixel ( and $x=0) the first pixel
I can understand that. There is a bit of an offset with the coordinates. But I gave it a decent sized search area with the pixel I am looking for just about in the middle of the box.
Code:
Local $TrainPos = _PixelSearch(625, 457, 686, 520, Hex(0x885733, 6), 5)
Here is my top left coordinates:
And here is my bottom right:
Do I have the coordinates wrong in the function call?