Skip to content

Instantly share code, notes, and snippets.

@tiffany352
Last active April 12, 2020 04:06
Show Gist options
  • Save tiffany352/a93b0f2d80f118c7e4fd9288bccdaa8b to your computer and use it in GitHub Desktop.
Save tiffany352/a93b0f2d80f118c7e4fd9288bccdaa8b to your computer and use it in GitHub Desktop.
Automates some of the tedious mouse movements when doing bulk crafting, you'll probably have to tweak all the numbers for your configuration (ctrl+m will show you the coords you clicked on to make this easier). Note that items are placed 18 "pixels" apart in the GUI since there's a 2 pixel border, multiply that by your Gui Scale value (mine is 3…
SetKeyDelay, 0
SetMouseDelay, 0
^c::
Send {Shift down}
Click 872 599
Sleep 30
Click 1654, 607
Send {Shift up}
return
^g::
Send {Shift down}
Send {Ctrl down}
Loop 6 {
Y := (A_Index - 1) * 54 + 460
Loop 9 {
X := (A_Index - 1) * 54 + 1063
MouseMove, %X%, %Y%
Sleep 12
Send ^+q
}
}
Send {Shift up}
Send {Ctrl up}
return
^m::
MouseGetPos, xpos, ypos
MsgBox, mouse at %xpos%, %ypos%
return
^Esc::
ExitApp
^r::
Reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment