newbie45 Posted February 1, 2013 Share Posted February 1, 2013 hey guys today I started to learn auto it because it looks nice and its very intresting. But after a smal time of writing and testing i get an error and dont knw how to fix because in my opinion ther isnt an error in the text pls help to find my mistake: code (just a part): Do $Ladepixel = PixelGetColor(960,337) Sleep(10000) If $Starttest="7697506" Then MouseClick ("left", 1200,900) ElseIf MouseClick ("left", 1400,70) If $Starttest="7697506" Then MouseClick ("left", 1100,900) ElseIf MouseClick ("left", 1400,70) Until $Ladepixel ="4594197" ------------------------------------------ I think: check colour "$Starttest" if its "7697506" klick on the start button if not choose option 2(elseif) check colour again if its "7697506" klick on the start button if not choose option 1 again(elseif) do this until $Ladepixel= "4594197" (says that the programm is loading) whats wrong with my code i cant fix it pls help Error message: "Until with no matching do statement" --------------------------------------------------------- sorry if im in a wrong treat this is my first post and my english is not very well... Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted February 1, 2013 Share Posted February 1, 2013 (edited) Start by using learning to use the forum. nest your script in. [/autoit][/quote] eg [autoit] Do $Ladepixel = PixelGetColor(960,337) Sleep(10000) If $Starttest="7697506" Then MouseClick ("left", 1200,900) ElseIf MouseClick ("left", 1400,70) If $Starttest="7697506" Then MouseClick ("left", 1100,900) ElseIf MouseClick ("left", 1400,70) Until $Ladepixel ="4594197" it looks like you are missing endif. Proper use of the if statement is in the helpfile. And I would recomend starting here. Edited February 1, 2013 by DicatoroftheUSA Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
kylomas Posted February 1, 2013 Share Posted February 1, 2013 (edited) newbie45, Please use code tags to post code. Your if statments are not terminated with "endif", also your "elseif" is not testing what you think it is. kylomas edit: or the elseif should just be an "else" stmt Edited February 1, 2013 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
newbie45 Posted February 1, 2013 Author Share Posted February 1, 2013 tank you very mutch and sorry that i forgott code tags to post my code but good first impression of this forum here 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