agmike

HoloCure fishing

Nov 21st, 2023
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. toggle := false
  2.  
  3. WinActivate, ahk_exe HoloCure.exe
  4.  
  5. F11::SetTimer, CheckColour, % (toggle := !toggle) ? "100" : "Off" ; Evaluats the label CheckColour every 0.25 sec or turns it off depending on "toggle"
  6.  
  7. CheckColour:
  8. PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0x3232E1, 5, Fast
  9. if (ErrorLevel) {
  10. } else {
  11. send, {Up down}
  12. sleep, 10
  13. send, {Up up}
  14. }
  15. PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0x2BEB2D, 5, Fast
  16. if (ErrorLevel) {
  17. } else {
  18. send, {Right down}
  19. sleep, 10
  20. send, {Right up}
  21. }
  22. PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0x43C5F5, 5, Fast
  23. if (ErrorLevel) {
  24. } else {
  25. send, {Left down}
  26. sleep, 10
  27. send, {Left up}
  28. }
  29. PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0xF69034, 5, Fast
  30. if (ErrorLevel) {
  31. } else {
  32. send, {Down down}
  33. sleep, 10
  34. send, {Down up}
  35. }
  36. PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0xD031AE, 5, Fast
  37. if (ErrorLevel) {
  38. } else {
  39. send, {Z down}
  40. sleep, 10
  41. send, {Z up}
  42. }
  43. PixelGetColor, Ros, 937, 434
  44. if(Ros != 0xF7F7F7){
  45. send, {Z down}
  46. sleep, 10
  47. send, {Z up}
  48. }
  49. Return
Add Comment
Please, Sign In to add comment