Need a little help with autoit

03/14/2008 01:44 csshakka#1
I'm just starting to learn Autoit and i need a little help. My first question is simple and i believe it is just a syntax error.

1. How do you load CABAL Online using autoit?
I have this for my script, what do i need to add/change.

RunWait("update.exe", "C:\\Program Files\\OGPlanet\\CABAL Online\\update.exe", @SW_MAXIMIZE)

2. How do you make the program heal you at a certain amount of hp or lower?
I'm not sure how to go about this, so please help.

Thanks
03/14/2008 02:40 camplesg#2
Quote:
Originally Posted by csshakka View Post
I'm just starting to learn Autoit and i need a little help. My first question is simple and i believe it is just a syntax error.

1. How do you load CABAL Online using autoit?
I have this for my script, what do i need to add/change.

RunWait("update.exe", "C:Program FilesOGPlanetCABAL Onlineupdate.exe", @SW_MAXIMIZE)

2. How do you make the program heal you at a certain amount of hp or lower?
I'm not sure how to go about this, so please help.

Thanks
to heal by pixel just find a pixel of color on the black bar of ur HP bar
wherever you want it to heal, just lose ur hp n u can get the black bar color
you can see my script here


#include <GuiConstants.au3>
#NoTrayIcon
GUICreate("Cabal",150,100)
$start=GUICtrlCreateButton("Start Cabal",40,10);<-- start cabal

GUICtrlCreateLabel("F10 to start healing"&@CRLF&"F11 to exit",10,50)
HotKeySet("{F10}","start");<-- start healing HotKey
HotKeySet("{F11}","stop");<-- stop healing
GUISetState()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop

Case $msg = $start
Run("C:\Program Files\OGPlanet\CABAL Online\Cabal.exe");<------- change this to where you installed Cabal

EndSelect

WEnd
Func start()
WinWait("CABAL", "")
If Not WinActive("CABAL", "") Then WinActivate("CABAL", "")
WinWaitActive("CABAL", "")
$Color1 = PixelGetColor(132,28) ;<-- pixel of the black color on the HP bar
If $Color1 = 2105376 Then ;<---- color of the black colorat that pixel
$Color1 = 0
Send("0");<-- it will press 0 to heal if ur HP bar if the black color show on the pixel
Sleep(100)
EndIf
EndFunc
Func stop()
exit
EndFunc
03/14/2008 04:16 GRB#3
u really need all of that just for AUTO HP? LOL, Why do u need a GUI? and hotkeys? LOL, here it is a symple code for that!

Code:
While ProcessExists("cabalmain.exe")
    $coord = PixelSearch(60, 20, 100, 33, 0x2A2A2A)
    If IsArray($coord) = 1 &  Then
        Send("{-}")
    EndIf
    Sleep(100)  ----------> and put this everytime in the end of a while so it dont use 2 mutch PC %
WEnd
03/14/2008 05:35 camplesg#4
Quote:
Originally Posted by GRB View Post
u really need all of that just for AUTO HP? LOL, Why do u need a GUI? and hotkeys? LOL, here it is a symple code for that!

Code:
While ProcessExists("cabalmain.exe")
     = PixelSearch(60, 20, 100, 33, 0x2A2A2A)
    If IsArray() = 1 &  Then
        Send("{-}")
    EndIf
    Sleep(100)  ----------> and put this everytime in the end of a while so it dont use 2 mutch PC %
WEnd
-.- it is my auto hp i just copy 4 him =P
03/14/2008 06:46 GRB#5
you can do alot of things with autoit, like make perfect inf. combos, and alot more things.
03/14/2008 20:40 csshakka#6
Thanks for help.

Quote:
Originally Posted by GRB View Post
Code:
While ProcessExists("cabalmain.exe")
     = PixelSearch(60, 20, 100, 33, 0x2A2A2A)
    If IsArray() = 1 &  Then
        Send("{-}")
    EndIf
    Sleep(100)  ----------> and put this everytime in the end of a while so it dont use 2 mutch PC %
WEnd
I have one question though, to make this script not use a hp pot every time your bar budges downwards, do you just set the script to look for the black/dark color within a box near the center or wherever % of health you want?
03/16/2008 02:28 GRB#7
that will search for the black bar when it reaches the 25% and if found it will use the HP pot!
01/02/2009 05:38 Xalexanderx#8
Hi ! :)

Please Friends Help Me
im newbe working with auto it

i want script with auto heal when my life take 50%
and auto pick up i pick up with key space bar start with "F6"
and activate with "F7" = stop and "F8" = Start


my resolution for play is 800 x 600
this options only
please help Friends !

sorry for my bad english :(

Very Thanks !!!
01/02/2009 13:16 d'Jew#9
03-16-2008, 03:28 don't bump up old threads ... and you can ask your questions here : [Only registered and activated users can see links. Click Here To Register...]