Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Usage:
- ; CTRL+R: reload the script, will also stop execution
- ; CTRL+J: begin, will run indefinitely until CTRL+R is pressed
- ^r::Reload
- ^j::
- SetMouseDelay, 1
- ; These values won't work if you're not running in 1080p
- ; Position of the sun UI panel (bottom left)
- sunPosX := 1795
- sunPosY := 655
- ; Size of the sun UI panel
- sunSizeX := 105
- sunSizeY := 40
- Loop {
- ; Each loop we move the sun one pixel to the right, and loop around
- ; when we reach the end
- delta := Mod(A_Index, sunSizeX)
- ; X is the start position + loop delta
- X := sunPosX + delta
- Y := Min(sunPosY + Sin((delta / sunSizeX) * 3.1416 * 1.5) * -sunSizeY, sunPosY)
- ; Set the sun position
- MouseMove, X, Y
- MouseClick
- sleep, 100
- ; Drag to rotate the camera
- MouseMove, 1500, 1000
- sleep, 1
- SendEvent {click, down}
- sleep, 1
- MouseMove, 1511, 1000
- sleep, 1
- MouseMove, 1512, 1000
- sleep, 1
- MouseMove, 1513, 1000
- sleep, 1
- MouseMove, 1514, 1000
- sleep, 1
- MouseMove, 1515, 1000
- sleep, 1
- SendEvent {click, up}
- sleep, 100
- ; Take a screenshot
- ; Increase the sleep time if your computer freezes longer while taking the screenshot
- MouseMove, (1823), (736) ; Move to screenshot
- MouseClick ; Capture
- sleep, 500
- }
- return
Add Comment
Please, Sign In to add comment