Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ;Center Curso on screen for aiming on farm
  2. ^!1:: ; Control+Alt+Z hotkey.
  3. MouseMove, 1920/2,1080/2, 50
  4. return
  5.  
  6. ;Plant Macro
  7. ^!5:: ; Control+Alt+Z hotkey.
  8. color := 0
  9. Send, 3
  10. loop ;Start loop Each iteration of loop check to see if the cursor is green and moved the mouse 1 pixel
  11. {
  12. MouseGetPos, MouseX, MouseY
  13. newMouseX := MouseX + 4
  14. newMouseY := MouseY + 10
  15. PixelGetColor, color, %newMouseX%, %newMouseY%, Alt RGB
  16. ;msgbox %color%
  17. newPositionx := MouseX
  18. newPositiony := MouseY - 1
  19. MouseMove, %newPositionx%, %newPositiony%, 50
  20. sleep, 30
  21. if A_Index = 100
  22. {
  23. msgbox Unable to get green cursor
  24. return
  25. }
  26. if color = 0x91D9ED
  27. {
  28. sleep, 100
  29. ;msgbox Planting Successful!
  30. Click
  31. return
  32. }
  33. }
  34. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement