Jump to content

Repeats..


Recommended Posts

Ok so i just downloaded Autoit and im new at this. So for my first script I wanted to Have it Open World of Warcraft, type in my password and log in for me.

Run ("C:\Program Files\World of Warcraft\Launcher.exe")

WinWaitActive("World of Warcraft", "Support")

Send ("{ENTER}")

WinWaitActive("World of Warcraft")

Send ("password here{ENTER}")

Thats what i have so far. When i tested it, It worked fine. It logged me in and went to the Character Screen. The only Problem is that it did this over and over and wouldnt stop. I had to shut down my comp to stop it.

Im looking for suggestions because what im thinking is the first 2 windows are too similar and so it repeats the Send command on both. But i could be wrong.

Edited by Darion
Link to comment
Share on other sites

this code as is

Run ("C:\Program Files\World of Warcraft\Launcher.exe")
WinWaitActive("World of Warcraft", "Support")
Send ("{ENTER}")
WinWaitActive("World of Warcraft")
Send ("password here{ENTER}")

will not run over and over, it will run and quit when finished

was it in a while/wend loop???

8)

NEWHeader1.png

Link to comment
Share on other sites

  • Moderators

You have it in some kind of loop then, put it outside a loop. If you run that code by itself with nothing else, it will not repeat.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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