Exi 0 Posted July 25, 2006 Im new to this and im stuck now. I want it to loop until this color appears and press on it Do $coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0xE27907) If IsArray($coord) Then MouseClick("left", $coord[0], $coord[1], 1, 1) EndIf Until I cant figure out what to put after Until. Thanks. Share this post Link to post Share on other sites
julmae 0 Posted July 25, 2006 (edited) this could do the trick 8) Do $coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0xE27907) ;Sleep(100); constant searching might get little slow so i would suggest to use little sleep here Until IsArray($coord) And Not @error MouseClick("left", $coord[0], $coord[1], 1, 1) Edited July 25, 2006 by julmae Share this post Link to post Share on other sites