ghost710 Posted August 8, 2012 Share Posted August 8, 2012 So Im trying to make a script/bot that, when I launch it, will run a program, login, start another program, enter some Send Functions, then runs untill the first program closes. When the first program is closed it should close the second program, and repeat the script. It works up untill the second program is launched, then it wont enter the Send Functions. However it will relaunch when closed as needed. The problem is with the send functions not working. Heres what I got so far: While 1 If Not ProcessExists("example1.exe") Then ProcessClose ("example2.exe") Run("example1.exe") Sleep (12000) Send ("password") Send ("{ENTER}") Sleep (5000) Send ("{ENTER}") Sleep (20000) Run ("example2.exe") Sleep (5000) Send ("{UP}") Sleep (1000) Send ("{TAB}") Sleep (1000) Send ("{DOWN}") Sleep (1000) Send ("{TAB}") Sleep (1000) Send ("{UP}") Sleep (1000) Send ("{TAB}") Sleep (1000) Send ("{TAB}") Sleep (1000) Send ("{ENTER}") WinActivate ("example1") Sleep (300000) WEnd Thanks for any help! Link to comment Share on other sites More sharing options...
NicePerson Posted August 8, 2012 Share Posted August 8, 2012 ghost710,Welcome the the forum!Please read the forum rules before posting more questions about bots/game automation.Regards Link to comment Share on other sites More sharing options...
JohnOne Posted August 8, 2012 Share Posted August 8, 2012 Perhaps you have to activate the window of the application first. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
DeltaRocked Posted August 8, 2012 Share Posted August 8, 2012 Lets see... New user , 1st post , content of the script contains "password" with a 20sec sleep to allow a heavy application to start ... hmmm Thread Lock ? Link to comment Share on other sites More sharing options...
Valik Posted August 8, 2012 Share Posted August 8, 2012 Script is incredibly suspicious not the least of which because it involves automating a login. Thread locked. Link to comment Share on other sites More sharing options...
Recommended Posts