Darion Posted March 5, 2006 Share Posted March 5, 2006 (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 March 5, 2006 by Darion Link to comment Share on other sites More sharing options...
Valuater Posted March 5, 2006 Share Posted March 5, 2006 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) Link to comment Share on other sites More sharing options...
Darion Posted March 5, 2006 Author Share Posted March 5, 2006 (edited) That is the only code in the script...I wanted it to stop there but it repeats and opens window after window Edited March 5, 2006 by Darion Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 5, 2006 Moderators Share Posted March 5, 2006 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 More sharing options...
Darion Posted March 5, 2006 Author Share Posted March 5, 2006 (edited) Thats what the code looks like yet it does this over and over. Let me test it again... Edited March 5, 2006 by Darion Link to comment Share on other sites More sharing options...
Valuater Posted March 5, 2006 Share Posted March 5, 2006 (edited) First you are in notepad...Really... get all the stuff you need herehttp://www.autoitscript.com/forum/index.php?showtopic=21048#8) Edited March 5, 2006 by Valuater Link to comment Share on other sites More sharing options...
Darion Posted March 5, 2006 Author Share Posted March 5, 2006 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. Link to comment Share on other sites More sharing options...
greenmachine Posted March 5, 2006 Share Posted March 5, 2006 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. 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