autopotter Helbreath


SUBMITTED BY: Guest

DATE: July 1, 2015, 3:16 a.m.

FORMAT: Text only

SIZE: 777 Bytes

HITS: 460

  1. #include <ImageSearch.au3>
  2. #NoTrayIcon
  3. HotKeySet ("{NUMPADMULT}","checkhp")
  4. HotKeySet ("{esc}","_quit")
  5. $interval = 1000
  6. Call ("pausar")
  7. func pausar()
  8. HotKeySet ("{NUMPADMULT}", "checkhp")
  9. while 1
  10. sleep (100)
  11. WEnd
  12. EndFunc
  13. func checkhp()
  14. HotKeySet ("{NUMPADMULT}", "pausar")
  15. while 1
  16. $x1=0
  17. $y1=0
  18. $resultmid = _ImageSearch("hurt.bmp",1,$x1,$y1,0)
  19. $resultfull = _ImageSearch("full.bmp",1,$x1,$y1,0)
  20. If $resultmid=1 Then
  21. send ("{insert}")
  22. EndIf
  23. If $resultfull=1 Then
  24. ;~ send ("{enter}full{enter}")
  25. EndIf
  26. $resultfull = 0
  27. $resultmid = 0
  28. sleep ($interval)
  29. WEnd
  30. EndFunc
  31. func _quit()
  32. Exit
  33. EndFunc

comments powered by Disqus