Skip to content

Instantly share code, notes, and snippets.

@nondanee
Last active October 17, 2018 06:02
Show Gist options
  • Save nondanee/9423c5d56743cfe3a18417deffe2d7cd to your computer and use it in GitHub Desktop.
Save nondanee/9423c5d56743cfe3a18417deffe2d7cd to your computer and use it in GitHub Desktop.
AutoHotKey configuration
SetStoreCapslockMode, Off
global capslock, action, click
Capslock::
SetTimer, Timeout, -300
click:=1
capslock:=1
action:=0
KeyWait, Capslock
if(!action && click){
SetCapsLockState, % GetKeyState("CapsLock","T") ? "Off" : "On"
}
capslock:=0
Return
Timeout:
click:=0
Return
#If capslock
w::
Send, {Up}
action:=1
Return
a::
Send, {Left}
action:=1
Return
s::
Send, {Down}
action:=1
Return
d::
Send, {Right}
action:=1
Return
@nondanee
Copy link
Author

@nondanee
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment