Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Cabal Online
You last visited: Today at 22:46

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

Advertisement



Autoit help

Discussion on Autoit help within the Cabal Online forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 58
Received Thanks: 5
Autoit help

So this is how my bot stops

Func Terminate()
$MB_MsgBoxButtons = 5 ;What buttons that show in messagebox 5 = Retry and Cancel
$MB_Cancel = 2 ;What button is pressed to exit the script 2 = Cancel, If Cancel buton is pushed the script stops.
If MsgBox($MB_MsgBoxButtons, $title_b, "Retry or Cancel the bot?") == $MB_Cancel Then
Exit
EndIf
EndFunc ;==>Terminate

It presses the "ESC" button to stop .
But the problem is my Auto Relogin bot needs to press "ESC" to get to the menu and press "switch char." So when that happens my First Bot stops .
So can someone help me change the "stop" button in the script to soemthing else like f12
phongbui is offline  
Old 04/14/2008, 04:46   #2
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
F12 cannot be used, it is used by Window API.

You can always do this.

HotKeySet("{F11}","Terminate")

Hiyoal
Hiyoal is offline  
Thanks
1 User
Old 04/14/2008, 14:23   #3
 
elite*gold: 0
Join Date: Mar 2008
Posts: 58
Received Thanks: 5
Angry

oh ok ty ah i cant hit thanks on psp
phongbui is offline  
Old 04/14/2008, 22:39   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 58
Received Thanks: 5
ahh acually i jsut tried that now and it doesnt work >_>
like where do u put it ?
phongbui is offline  
Old 04/15/2008, 12:46   #5
 
Hiyoal's Avatar
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
Sample Code:

PHP Code:
While 1
    Sleep
(50)
    
HotKeySet("{F11}","Terminate")
WEnd

Func Terminate
()
 = 
;What buttons that show in messagebox 5 Retry and Cancel
 
;What button is pressed to exit the script 2 Cancel, If Cancel buton is pushed the script stops.
If 
MsgBox(, , "Retry or Cancel the bot?") ==  Then
Exit
EndIf
EndFunc ;==>Terminate 
Enjoy that
For any additional help with AutoIt, you can always PM me. Also check out my extensive 2 part AutoIt guides in which the link is in my signature titled "The Full Guide To Making Your Own Bots/Macros"

It explains in the most basic knowledge the fundamentals used in programming, basic coding in AutoIt and GUI Creation using AutoIt and KODA.

Hiyoal
Hiyoal is offline  
Thanks
1 User
Old 04/15/2008, 23:44   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 58
Received Thanks: 5
ok tyvm . my question has been answered so any mod or w.e can close this thread now ^^
phongbui is offline  
Reply




All times are GMT +2. The time now is 22:46.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.