Quote:
Originally Posted by csshakka
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