|
$clickme = pixelsearch( you said you knew how to do this)
if not @error then
mouseclick("left", $clickme[0], $clickme[1], 0)
endif
pixelsearch returns a 2 set array (0 and 1) which hold X and Y of where the color was found respectively.
if theres no error then it found something and you want to click on what it found
mouseclick means click my mouse, "left" is the left mouse button, i already explained the next 2 things, 0 is the mouse speed (instant, higher moves it slower)
and you want a sleep(10000) somewhere... thats 10 seconds in milliseconds.
|