|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | <blockquote>
| |
− | ; Carrot planter
| |
− | #UseHook
| |
− | #InstallMouseHook
| |
− | #InstallKeybdHook
| |
| | | |
− | ;Ctrl+p to Pause script
| |
− | ;Ctrl+r to reload script
| |
− |
| |
− | shades:="*90"
| |
− |
| |
− | IfWinExist eGenesis Client
| |
− | {
| |
− | WinActivate
| |
− | WinGetPos,,, winWidth, winHeight
| |
− | minorOffset = 100
| |
− | majorOffset = 140
| |
− | winXCenter := winWidth / 2
| |
− | winYCenter := ((winHeight - 22) / 2) + 32
| |
− | winXLeft := winXCenter - minorOffset
| |
− | winXFarLeft := winXCenter - majorOffset
| |
− | winXRight := winXCenter + minorOffset
| |
− | winXFarRight := winXCenter + majorOffset
| |
− | winYUp := winYCenter - minorOffset
| |
− | winYFarUp := winYCenter - majorOffset
| |
− | winYDown := winYCenter + minorOffset
| |
− | winYFarDown := winYCenter + majorOffset
| |
− | circleMove = 0
| |
− |
| |
− | Gui, +AlwaysOnTop +ToolWindow
| |
− | Gui, Add, Text,, How many Carrot cycles?
| |
− | Gui, Add, Edit, Number vNumGrass
| |
− | Gui, Add, Button, default gGrassCommit, OK
| |
− | Gui, Show
| |
− | return
| |
− |
| |
− | GrassCommit:
| |
− | Gui, Submit
| |
− | Gui, Destroy
| |
− | GrassCycle = 0
| |
− |
| |
− | WinActivate, eGenesis Client
| |
− | ;CoordMode, Mouse, Relative
| |
− |
| |
− | SetDefaultMouseSpeed, 0
| |
− | SetMouseDelay, -1
| |
− |
| |
− |
| |
− | loop, %NumGrass%
| |
− | {
| |
− | Send {down down}
| |
− | Sleep 300
| |
− | Send {down up}
| |
− | Sleep 300
| |
− | Send {up down}
| |
− | Sleep 300
| |
− | Send {up up}
| |
− | Sleep 300
| |
− | Send {left down}
| |
− | sleep 300
| |
− | Send {left up}
| |
− | sleep 1000
| |
− | Send {right down}
| |
− | sleep 300
| |
− | Send {right up}
| |
− |
| |
− |
| |
− | sleep 1000
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 54, 88, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− | sleep 100
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 66, 80, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− | sleep 100
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 82, 88, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− | sleep 100
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 42, 105, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− | sleep 100
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 91, 105, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− | sleep 100
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 54, 119, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− | sleep 100
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 66, 128, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− | sleep 100
| |
− |
| |
− | MouseClick, left, 47, 47
| |
− | sleep 200
| |
− | Mouseclick Left, 82, 119, 2
| |
− | sleep 100
| |
− | Mouseclick Left, 40, 166
| |
− |
| |
− |
| |
− |
| |
− | sleep 300
| |
− |
| |
− | ; Pin and move windows
| |
− |
| |
− |
| |
− | Mousemove, 883, 468
| |
− | sleep 300
| |
− | Mouseclick Right, 883, 468
| |
− | sleep 200
| |
− | Mouseclick Right, 883, 468 ;888, 460
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 450, 350, 3
| |
− | sleep 100
| |
− | click up
| |
− |
| |
− | Mousemove, 961, 468 ;967,441
| |
− | sleep 300
| |
− | Mouseclick Right, 961, 468
| |
− | sleep 200
| |
− | Mouseclick Right, 961, 468
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 150, 350, 3
| |
− | sleep 100
| |
− | click up
| |
− |
| |
− | Mousemove, 1039, 468 ;1044, 450
| |
− | sleep 300
| |
− | Mouseclick Right, 1039, 468
| |
− | sleep 200
| |
− | Mouseclick Right, 1039, 468
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 450, 450, 3
| |
− | sleep 100
| |
− | click up
| |
− |
| |
− |
| |
− |
| |
− | Mousemove, 883, 542 ;888, 529
| |
− | sleep 300
| |
− | Mouseclick Right, 883, 542
| |
− | sleep 200
| |
− | Mouseclick Right, 883, 542
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 150, 450, 3
| |
− | sleep 100
| |
− | click up
| |
− |
| |
− |
| |
− | Mousemove, 1035, 544 ;1045, 530
| |
− | sleep 300
| |
− | Mouseclick Right, 1035, 544
| |
− | sleep 200
| |
− | Mouseclick Right, 1035, 544
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 150, 550, 3
| |
− | sleep 100
| |
− | click up
| |
− |
| |
− |
| |
− | Mousemove, 883, 622 ;880,622
| |
− | sleep 300
| |
− | Mouseclick Right, 883, 622
| |
− | sleep 200
| |
− | Mouseclick Right, 883, 622
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 150, 650, 3
| |
− | sleep 100
| |
− | click up
| |
− |
| |
− | Mousemove, 961, 622
| |
− | sleep 300
| |
− | Mouseclick Right, 961, 622
| |
− | sleep 200
| |
− | Mouseclick Right, 961, 622
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 450, 550, 3
| |
− | sleep 100
| |
− | click up
| |
− |
| |
− | Mousemove, 1038, 622
| |
− | sleep 300
| |
− | Mouseclick Right, 1038, 622
| |
− | sleep 200
| |
− | Mouseclick Right, 1038, 622
| |
− | sleep 200
| |
− | click down
| |
− | sleep 100
| |
− | mousemove, 450, 650, 3
| |
− | sleep 200
| |
− | click up
| |
− |
| |
− | mousemove, 500, 325, 3
| |
− | Sleep 500
| |
− | ;water 1
| |
− |
| |
− | Loop, 3
| |
− | {
| |
− | Mouseclick left, 500, 325
| |
− | sleep 100
| |
− | Mouseclick left, 500, 350
| |
− | sleep 100
| |
− | Mouseclick left, 500, 350
| |
− | sleep 100
| |
− | ; Mouseclick left, 500, 350
| |
− | ; sleep 100
| |
− |
| |
− | Mouseclick left, 200, 325
| |
− | sleep 100
| |
− | Mouseclick left, 200, 350
| |
− | sleep 100
| |
− | Mouseclick left, 200, 350
| |
− | sleep 100
| |
− | ; Mouseclick left, 200, 350
| |
− | ; sleep 100
| |
− |
| |
− | Mouseclick left, 500, 415
| |
− | sleep 100
| |
− | Mouseclick left, 500, 450
| |
− | sleep 100
| |
− | Mouseclick left, 500, 450
| |
− | sleep 100
| |
− | ; Mouseclick left, 500, 450
| |
− | ; sleep 100
| |
− |
| |
− | Mouseclick left, 200, 415
| |
− | sleep 100
| |
− | Mouseclick left, 200, 450
| |
− | sleep 100
| |
− | Mouseclick left, 200, 450
| |
− | sleep 100
| |
− | ; Mouseclick left, 200, 450
| |
− | ; sleep 100
| |
− |
| |
− | mouseclick left, 500, 515
| |
− | sleep 100
| |
− | Mouseclick left, 500, 550
| |
− | sleep 100
| |
− | Mouseclick left, 500, 550
| |
− | sleep 100
| |
− | ; Mouseclick left, 500, 550
| |
− | ; sleep 100
| |
− |
| |
− | mouseclick left, 200, 515
| |
− | sleep 100
| |
− | Mouseclick left, 200, 550
| |
− | sleep 100
| |
− | Mouseclick left, 200, 550
| |
− | sleep 100
| |
− | ; Mouseclick left, 200, 550
| |
− | ; sleep 100
| |
− |
| |
− | mouseclick left, 500, 615
| |
− | sleep 100
| |
− | Mouseclick left, 500, 650
| |
− | sleep 100
| |
− | Mouseclick left, 500, 650
| |
− | sleep 100
| |
− | ; Mouseclick left, 500, 650
| |
− | ; sleep 100
| |
− |
| |
− | mouseclick left, 200, 615
| |
− | sleep 100
| |
− | Mouseclick left, 200, 650
| |
− | sleep 100
| |
− | Mouseclick left, 200, 650
| |
− | sleep 100
| |
− | ; Mouseclick left, 200, 650
| |
− | ; sleep 100
| |
− |
| |
− |
| |
− | Sleep 10000
| |
− | }
| |
− |
| |
− |
| |
− | ;harvest
| |
− | sleep 3000
| |
− |
| |
− |
| |
− | Mouseclick left, 500, 315
| |
− | sleep 100
| |
− | Mouseclick Left, 500, 350
| |
− | sleep 100
| |
− | Mouseclick right, 500, 315
| |
− |
| |
− | Mouseclick left, 200, 315
| |
− | sleep 100
| |
− | Mouseclick left, 200, 350
| |
− | sleep 100
| |
− | Mouseclick right, 200, 315
| |
− | sleep 100
| |
− |
| |
− | Mouseclick left, 500, 415
| |
− | sleep 100
| |
− | Mouseclick left, 500, 450
| |
− | sleep 100
| |
− | Mouseclick right, 500, 415
| |
− | sleep 100
| |
− |
| |
− | Mouseclick left, 200, 415
| |
− | sleep 100
| |
− | Mouseclick left, 200, 450
| |
− | sleep 100
| |
− | Mouseclick right, 200, 415
| |
− | sleep 100
| |
− |
| |
− | mouseclick left, 500, 515
| |
− | sleep 100
| |
− | Mouseclick left, 500, 550
| |
− | sleep 100
| |
− | Mouseclick right, 500, 515
| |
− | sleep 100
| |
− |
| |
− | mouseclick left, 200, 515
| |
− | sleep 100
| |
− | Mouseclick left, 200, 550
| |
− | sleep 100
| |
− | Mouseclick right, 200, 515
| |
− | sleep 100
| |
− |
| |
− | mouseclick left, 500, 615
| |
− | sleep 100
| |
− | Mouseclick left, 500, 650
| |
− | sleep 100
| |
− | Mouseclick right, 500, 615
| |
− | sleep 100
| |
− |
| |
− | mouseclick left, 200, 615
| |
− | sleep 100
| |
− | Mouseclick left, 200, 650
| |
− | sleep 100
| |
− | Mouseclick right, 200, 615
| |
− | sleep 100
| |
− |
| |
− | sleep 18000
| |
− |
| |
− | ImageSearch, Px, Py, 185 , 25, 865, 135, water.png
| |
− |
| |
− | Sleep 100
| |
− | MouseClick, left, Px, Py
| |
− | Sleep, 250
| |
− |
| |
− | ImageSearch, Px, Py, 910 , 510, 990, 650, %shades% maxButton.png
| |
− | MouseClick, left, Px, Py
| |
− | Sleep, 4000
| |
− |
| |
− |
| |
− | }
| |
− | Gui, Destroy
| |
− | return
| |
− | }
| |
− | return
| |
− |
| |
− |
| |
− | ^r::reload
| |
− | ^p::Pause
| |
− | </blockquote>
| |