Guest icepick Posted December 26, 2004 Posted December 26, 2004 Very embarrasing issue. I'm no expert with AutoIt, but I would certainly hope that I could figure this one out... but... Version I'm using: v3.0.102$state = 0 $checkdone = 0 Do $checkdone = PixelGetColor( 153, 847 ) If $checkdone = 7425294 Then MouseClick("left", 153 , 847, 1) Sleep (100) $state = 1 End If Until $state = 1The compile error reported is:Until $state = 1Error: "Until" statement with no matching "Do" statement.Taking the same code and replacing: "Do" with "While $state = 0"and "Until $state = 1" with "WEnd"results in the corresponding error:WendError: "Wend" statement with no matching "While" statement.Would anyone be able to point out what I am missing?
Insolence Posted December 26, 2004 Posted December 26, 2004 You got your 'End If' as two words, make it EndIF and try that. "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
SlimShady Posted December 26, 2004 Posted December 26, 2004 When I started with AutoIt I also typed "End If". That's VBScript style.
Insolence Posted December 26, 2004 Posted December 26, 2004 VBScript == newb! You must be a newb "I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
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