Jump to content

hope to learn auto it...


 Share

Recommended Posts

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

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 by DicatoroftheUSA
Link to comment
Share on other sites

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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...