Opt("MouseCoordMode", 2)
Opt("PixelCoordMode", 2)
Opt("CaretCoordMode", 2)
HotKeySet("{ESC}", "stop")
While 1
_UsePotionHP()
_UsePotionSP()
Sleep(100)
WEnd
Func _UsePotionHP()
if PixelGetColor(540, 331)= 0x424242 Then Send("{F8}")
EndFunc
Func _UsePotionSP()
if PixelGetColor(540, 335)= 0x424242 Then Send("{F9}")
EndFunc
Func _exit()
Select
Case @GUI_CtrlId = $GUI_EVENT_CLOSE
Exit
EndSelect
EndFunc ;
ขอบคุณล่วงหน้าคับ
Opt("PixelCoordMode", 2)
Opt("CaretCoordMode", 2)
HotKeySet("{ESC}", "stop")
While 1
_UsePotionHP()
_UsePotionSP()
Sleep(100)
WEnd
Func _UsePotionHP()
if PixelGetColor(540, 331)= 0x424242 Then Send("{F8}")
EndFunc
Func _UsePotionSP()
if PixelGetColor(540, 335)= 0x424242 Then Send("{F9}")
EndFunc
Func _exit()
Select
Case @GUI_CtrlId = $GUI_EVENT_CLOSE
Exit
EndSelect
EndFunc ;
ขอบคุณล่วงหน้าคับ