Skip to content

Instantly share code, notes, and snippets.

@ionoy
Created April 2, 2014 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionoy/9929330 to your computer and use it in GitHub Desktop.
Save ionoy/9929330 to your computer and use it in GitHub Desktop.
*CapsLock::
BlockInput On
CoordMode, Caret, Screen
IsMouseDown = 0
while GetKeyState("CapsLock", "P") ; While the F1 key is being held down physically.
{
Sleep, 1
if(GetKeyState("a", "P"))
MouseSpeed := 35
else
MouseSpeed := 7
if GetKeyState("u", "P")
MouseMove, 0, -MouseSpeed, 0, R
if GetKeyState("j", "P")
MouseMove, 0, MouseSpeed, 0, R
if GetKeyState("h", "P")
MouseMove, -MouseSpeed, 0, 0, R
if GetKeyState("k", "P")
MouseMove, MouseSpeed, 0, 0, R
if(GetKeyState("Space", "P")) {
if(IsMouseDown = 0) {
MouseClick, left
IsMouseDown := 1
}
} else {
IsMouseDown := 0
}
}
BlockInput Off
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment