Loken 2 Posted March 29, 2011 (edited) hi everyone.My problem with random coords.i need Click a random coord,if pixel found click pixel and click first coord again. Func Coord() $wintitle="MozillaFirefox" $Pixel=PixelSearch(0,0,1000,500,0xFFFFFF) $coordx = Int(Random($minx, $maxx)) $coordy = Int(Random($miny, $maxy)) ControlClick($wintitle, "", "", "left", 1, $coordx, $coordy) If isarray($Pixel)=True Then MouseClick("left",$Pixel[0],$Pixel[1],1,1) EndIf ; MOUSE CLİCK FİRST COORDS. Thanks to all reader does anyone know this, pls? Edited April 2, 2011 by Loken Share this post Link to post Share on other sites