Sign in to follow this  
Followers 0
Darion

Repeats..

8 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

That is the only code in the script...I wanted it to stop there but it repeats and opens window after window

Edited by Darion

Share this post


Link to post
Share on other sites

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.


[center]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.[/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Posted Image

Thats what the code looks like yet it does this over and over. Let me test it again...

Edited by Darion

Share this post


Link to post
Share on other sites

Ok i just tested it again and i didnt repeat but it didnt work as i planned im gonna mess with it and try to get it to work.

Share this post


Link to post
Share on other sites

By the way, your password is in that image. I can tell it's your password because in the code you originally posted, you say "password here". One or the other should definitely be changed.

Share this post


Link to post
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
Sign in to follow this  
Followers 0