Skip to content

Instantly share code, notes, and snippets.

@marvk
Created April 11, 2020 12:10
Show Gist options
  • Save marvk/8899d655ca140caddb516864e4eda8ec to your computer and use it in GitHub Desktop.
Save marvk/8899d655ca140caddb516864e4eda8ec to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Move SW
Numpad1::
MouseGetPos, xpos, ypos
Click 1730 877
MouseMove, %xpos%, %ypos%
Return
; Move S
Numpad2::
MouseGetPos, xpos, ypos
Click 1780 877
MouseMove, %xpos%, %ypos%
Return
; Move SE
Numpad3::
MouseGetPos, xpos, ypos
Click 1830 877
MouseMove, %xpos%, %ypos%
Return
; Move W
Numpad4::
MouseGetPos, xpos, ypos
Click 1730 827
MouseMove, %xpos%, %ypos%
Return
; Move E
Numpad6::
MouseGetPos, xpos, ypos
Click 1830 827
MouseMove, %xpos%, %ypos%
Return
; Move NW
Numpad7::
MouseGetPos, xpos, ypos
Click 1730 777
MouseMove, %xpos%, %ypos%
Return
; Move N
Numpad8::
MouseGetPos, xpos, ypos
Click 1780 777
MouseMove, %xpos%, %ypos%
Return
; Move NE
Numpad9::
MouseGetPos, xpos, ypos
Click 1830 777
MouseMove, %xpos%, %ypos%
Return
Numpad5::!+9
Return
NumpadAdd::!+8
Return
NumpadSub::
Send !+4
Sleep, 250
Send {Tab}
Send {Down 9}
Send {Tab}
Send {Enter}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment