Jump to content

Script/Bot Help?


Recommended Posts

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...