Something like this is logically simple. Here is a sample code This code does not work only to guide youQuote:
it works!! thx, now i just need autopot when i get to 50% health left
neone mind sharing where i can get it? i searched for it, cant find nething...
Code:
While 1
WinActivate("CABAL")
If = PixelSearch (x, y, bx, by, 0xFFFFFF, 2, 1) Then ;Looks for the color black on the HP BAR
Send("6") ;This is the hp pot key
Sleep (500) ;Wait 1/2 second
If Not @error Then
Sleep (50)
EndIf
EndIf
WEnd
After If and before = needs to be "$coord" without the quotes it will not let me put it in.