Me again, I want to loop the arrow keys moving whatever directions I want em' until It find the pixel I'm looking for.
I have a code like:
Local $coord
While 1
$coord = PixelSearch( 0, 0, 1700, 1100, COLOR)
If Not @error Then ExitLoop
If @error Then Send("{DOWN}")
sleep (10)
Send("{RIGHT 1}")
sleep (10)
Send("{UP}")
sleep (10)
Send("{LEFT 1}")
sleep (10)
WEnd
MsgBox(64,"Information","Pixel Found at ("&$coord[0]&','&$coord[1]&')')
But it only searches the pixel when it is on the last command, which is the LEFT button. What is wrong?
Why is that? I'm using this to erase certain pixel on REALWORLD icon Editor. My computer is slow for any editing software. And it's a real pain using magic wand. Any way, hope you guys can tell me what's wrong.