Exi Posted July 25, 2006 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.
julmae Posted July 25, 2006 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now