Guest User

Untitled

a guest
Aug 17th, 2015
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Global $setPoint = 0
  2. Global $color
  3. Global $point
  4. Global $setPoint
  5. HotKeySet("!f", "setPoint")
  6. MsgBox(0, "Instructions", "Press Alt + F at any place on your health." & @CRLF &"When your health goes below that point, q is pressed.")
  7. while 1
  8. sleep(100)
  9. if $setPoint = 1 Then
  10. Start()
  11. EndIf
  12. Wend
  13. Func setPoint()
  14. $point = MouseGetPos()
  15. $color = PixelGetColor($point[0], $point[1])
  16. $setPoint = 1
  17. EndFunc
  18.  
  19. Func Start()
  20. while 1
  21. Sleep(100)
  22. $color = PixelGetColor($point[0], $point[1])
  23. if $color = 1776411 Then
  24. Send("q")
  25. EndIf
  26. WEnd
  27. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment