Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. $k = 0
  2. While 2
  3. HotKeySet("{ESC}", "Terminate")
  4. HotKeySet("{5}", "go")
  5. WEnd
  6.  
  7. Func go()
  8. Send("{Space down}")
  9. While 1
  10. If PixelGetColor(445,730) = 0xC72C24 And $k = 0 Then
  11. Send("{1}")
  12. $k += 1
  13. EndIf
  14. If PixelGetColor(445,730) = 0x181818 And $k = 1 Then
  15. Send("{2}")
  16. $k += 1
  17. EndIf
  18. If PixelGetColor(477,730) = Not 0xC72C24 And $k = 2 Then
  19. Send("{3}")
  20. $k += 1
  21. EndIf
  22. If PixelGetColor(509,730) = Not 0xC72C24 And $k = 3 Then
  23. Send("{4}")
  24. $k += 1
  25. EndIf
  26. If PixelGetColor(541,730) = Not 0xC72C24 And $k = 4 Then
  27. Send("{F2}")
  28. $k += 1
  29. EndIf
  30. If PixelGetColor(619,730) = Not 0xC72C24 And $k = 5 Then
  31. Send("{F3}")
  32. $k += 1
  33. EndIf
  34. If PixelGetColor(651,730) = Not 0xC72C24 And $k = 6 Then
  35. Send("{F4}")
  36. $k += 1
  37. EndIf
  38.  
  39. Send("{F1}")
  40. Sleep(2000)
  41. WEnd
  42. EndFunc
  43.  
  44. Func Terminate()
  45. Exit 0
  46. EndFunc ;==>Terminate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement