ricson@
if i can, i add that long time ago already
which means i cant
if i can, i add that long time ago already
which means i cant
WinGet,id, ID,[Conquer2.0]
gata := false
[COLOR="Blue"]; hook to the client[/COLOR]
loop
{
IfWinActive, ahk_id %id%
[COLOR="Blue"]; only continue if CO client is active [/COLOR]
{
PixelSearch, , , 10, 720, 60, 720, 0x0B098F, 10, Fast
[COLOR="Blue"]; check HP bar[/COLOR]
if ErrorLevel
{
ControlClick, x110 y750,ahk_id %id%,,RIGHT
[COLOR="Blue"]; click the F1 position if HP arrives half[/COLOR]
sleep 500
}
}
sleep 500
[COLOR="Blue"]; loop check every half second[/COLOR]
}
return
^q::pause
[COLOR="Blue"]; pause hotkey[/COLOR]