Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Center Curso on screen for aiming on farm
- ^!1:: ; Control+Alt+Z hotkey.
- MouseMove, 1920/2,1080/2, 50
- return
- ;Plant Macro
- ^!5:: ; Control+Alt+Z hotkey.
- color := 0
- Send, 3
- loop ;Start loop Each iteration of loop check to see if the cursor is green and moved the mouse 1 pixel
- {
- MouseGetPos, MouseX, MouseY
- newMouseX := MouseX + 4
- newMouseY := MouseY + 10
- PixelGetColor, color, %newMouseX%, %newMouseY%, Alt RGB
- ;msgbox %color%
- newPositionx := MouseX
- newPositiony := MouseY - 1
- MouseMove, %newPositionx%, %newPositiony%, 50
- sleep, 30
- if A_Index = 100
- {
- msgbox Unable to get green cursor
- return
- }
- if color = 0x91D9ED
- {
- sleep, 100
- ;msgbox Planting Successful!
- Click
- return
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement