Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 01:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Script/Bot Help?

Discussion on Script/Bot Help? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 2
Received Thanks: 0
Talking Script/Bot Help?

Hey, I'm new to AutoIt and I need help making a bot that I can run to open a program when it closes.

More specifically I need it to:
close example2.exe if example1.exe is not running
Run example1.exe
press enter wait 10s
press enter wait 30s
run example2.exe
press tab
press up arrow
press down arrow
then if example1.exe closes repeat

Sorry if this is posted in the wrong section and thanks for any help!
ghost710 is offline  
Old 08/07/2012, 23:35   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
While... WEnd
If... Then...
ProcessExists
Run or ShellExecute
(Control)Send
Sleep
KDeluxe is offline  
Old 08/08/2012, 04:04   #3
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,498
Received Thanks: 3,525
Quote:
Originally Posted by KDeluxe View Post
While... WEnd
If... Then...
ProcessExists
Run or ShellExecute
(Control)Send
Sleep
PHP Code:
While 1
If Not ProcessExist("example1.exe"Then
ProcessClose
("example2.exe")
Run("example1.exe")
....
Send("{ENTER}")
Sleep(1000)
Send("{ENTER}")
Sleep(3000)
Run("example2.exe")
Send("{TAB}")
Send("{UP}")
Send("{DOWN}")
EndIf

If 
ProcessExist("example1.exe"Then
ProcessClose
("example1.exe")
EndIf

WEnd 
Lumi is offline  
Old 08/08/2012, 04:24   #4
 
elite*gold: 0
Join Date: Aug 2012
Posts: 2
Received Thanks: 0
Still having trouble, launching the program to launching the second program works fine but it wont enter the Send functions after the second .exe runs and opens. Here what I got

PHP Code:
While 
If Not ProcessExists("example1.exe"Then ProcessClose ("example2.exe"
   
Run("example1.exe")
   
Sleep (12000)
   
Send ("eaxample")
   
Send ("{ENTER}")
   
Sleep (5000)
   
Send ("{ENTER}")
   
Sleep (20000)
   
Run ("example2.exe")
   
Sleep (5000)
   
Send ("{TAB}")
   
Send ("{UP}")
   
Send ("{TAB}")
   
Send ("{DOWN}")
   
Send ("{TAB}")
   
Send ("{UP}")
   
Send ("{TAB}")
   
Send ("{TAB}")
   
Send ("{ENTER}")
   
WinActivate ("example1")
Sleep (300000)
WEnd 
ghost710 is offline  
Old 08/08/2012, 13:11   #5
ベトナム警察




 
Lumi's Avatar
 
elite*gold: 0
The Black Market: 517/0/0
Join Date: Jan 2012
Posts: 16,498
Received Thanks: 3,525
Quote:
Originally Posted by ghost710 View Post
Still having trouble, launching the program to launching the second program works fine but it wont enter the Send functions after the second .exe runs and opens. Here what I got

PHP Code:
While 
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 ("{TAB}")
   
Send ("{UP}")
   
Send ("{TAB}")
   
Send ("{DOWN}")
   
Send ("{TAB}")
   
Send ("{UP}")
   
Send ("{TAB}")
   
Send ("{TAB}")
   
Send ("{ENTER}")
   
WinActivate ("example1")
Sleep (300000)
WEnd 
You forgot EndIf.
Lumi is offline  
Reply


Similar Threads Similar Threads
L2Walker script: Solo rebuff/restock/return script
08/08/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 63 Replies
Hello! I've been reading alot and not really contributing so i'll start off here with a very well working script im using to bot my SK outside ivory tower in oren. I've tried to structure the code so it easily can be modified for another level of character, town, and hunting spot. The script is made for CT2 Retail, mainly to get advantage of the newbie buffs (which now lasts all the way until level 62) Change log: Update 2008-09-01 Version 1.14 -Download
[suche] d2nt level rush script 1-25 / follow script
06/23/2010 - Diablo 2 Programming - 5 Replies
moin erstmal sry falls es da doch schon was passendes zu gab - hab schonmal gesucht aber nur alte sachen gefunden oder eben antworten in richtung "geht so schnell dafür braucht man keinen bot" ^^ mein problem besteht darin dass ich für lvl 1 bis 20 immer x stunden brauche - trist geht ja noch halberwegs aber mit tombruns such ich mich immer dusselig ^^ - bzw cows sind noch schlimmer (dafür geht das cow-script für d2nt ausm bluebird zumindest halberwegs) die frage ist jetz die - giebt...



All times are GMT +1. The time now is 01:57.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.