Sign in to follow this  
Followers 0
ghost710

Script/Bot Help?

5 posts in this topic

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!

Share this post


Link to post
Share on other sites



ghost710,

Welcome the the forum!

Please read the forum rules before posting more questions about bots/game automation.

Regards

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

Script is incredibly suspicious not the least of which because it involves automating a login. Thread locked.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0