RandomGuest Posted October 17, 2007 Posted October 17, 2007 (edited) First of all, im quite new to Autoit. $Pixel = PixelSearch ( 0, 0, 474, 176, 0x00CE00) If @ERROR Then Send("{2 down}") Sleep(500) Send("{2 up}") Else Send("{1 down}") Sleep(500) Send("{1 up}") EndIf So, if I want AutoIt to do another pixelsearch, it does not do anything. How can I make it so it can first do this pixelsearch above, then it starts another pixelsearch for another color and so on?... Edited October 17, 2007 by RandomGuest
PsaltyDS Posted October 17, 2007 Posted October 17, 2007 I guess you want a loop. Check out For/Next, While/WEnd, and Do/Until in the help file. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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