#include #NoTrayIcon HotKeySet ("{NUMPADMULT}","checkhp") HotKeySet ("{esc}","_quit") $interval = 1000 Call ("pausar") func pausar() HotKeySet ("{NUMPADMULT}", "checkhp") while 1 sleep (100) WEnd EndFunc func checkhp() HotKeySet ("{NUMPADMULT}", "pausar") while 1 $x1=0 $y1=0 $resultmid = _ImageSearch("hurt.bmp",1,$x1,$y1,0) $resultfull = _ImageSearch("full.bmp",1,$x1,$y1,0) If $resultmid=1 Then send ("{insert}") EndIf If $resultfull=1 Then ;~ send ("{enter}full{enter}") EndIf $resultfull = 0 $resultmid = 0 sleep ($interval) WEnd EndFunc func _quit() Exit EndFunc