jimmyjoe Posted April 27, 2006 Share Posted April 27, 2006 $mob = PixelGetColor(577, 32) sleep(2000) While 1 If $mob = 8712183 Then sleep(1500) EndIf Wend I cant figure out how to make this loop infinite until it comes back that the color at the coordinate is no longer there and then move on with the rest of the script. If there wasa goto I could figure something out. Whats AU3's equal to goto? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 27, 2006 Share Posted April 27, 2006 (edited) whats wrong with moving the loop above the pixel check? WHile 1 $mob = PixelGetColor(577, 32) If $mob = 8712183 Then program() Else sleep(200) Wend func program() ;program stuff goes here EndFunc Edited April 27, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Uten Posted April 27, 2006 Share Posted April 27, 2006 (edited) I cant figure out how to make this loop infinite until it comes back that the color at the coordinate is no longer there and then move on with the rest of the script. If there wasa goto I could figure something out. Whats AU3's equal to goto?Hope the goto thing is a joke? The world has moved one you know;) While (8712183 = PixelGetColor(577, 32)) sleep(1500) WEnd EDIT: Formating came out all wrong. Edited April 27, 2006 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
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