woodyfly Posted July 6, 2010 Share Posted July 6, 2010 (edited) Edit: Delete, Figured it out! Had to think for a while. I love autoIT, so much thinking behind it! Edited July 6, 2010 by woodyfly Link to comment Share on other sites More sharing options...
Mat Posted July 6, 2010 Share Posted July 6, 2010 (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 In future don't edit the post and leave a message saying what the solution is. Edited July 6, 2010 by Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 6, 2010 Share Posted July 6, 2010 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. 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 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