Jump to content

Recommended Posts

Posted (edited)

Edit: Delete, Figured it out! Had to think for a while. I love autoIT, so much thinking behind it! :blink:

Edited by woodyfly
Posted (edited)

This is where the For ... Next loop comes in handy. The problem was that unless hello was 0, $Hello would always evaluate as true. Since you were increasing it's value, after the first run: $Hello = 21 = True, so the loop is terminated.

$Hello = InputBox("Poseidon","How Many times?")

For $i = 1 To $Hello
    WinActivate("1")
    Sleep(1000)
    MouseClick("Left",612,743,1,500)
    Sleep(1000)
    MouseClick("Right",654,418,1,500)
    Sleep(1000)
    MouseClick("Left",647,426,1,500)
    Sleep(1000)
    MouseClick("Left",1010,344,1,500)
    Sleep(1000)
Next

Edit: Oh... You fixes it :blink: In future don't edit the post and leave a message saying what the solution is.

Edited by Mat
Posted

Edit: Delete, Figured it out! Had to think for a while.

Don't do that. Leave the questions there, with the answers, so other can find them in the future when they have similar issues. Deleting the question after you have your answer reduces the utility of the forum search function.

:blink:

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

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
  • Recently Browsing   0 members

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