Last active
October 17, 2018 06:02
-
-
Save nondanee/9423c5d56743cfe3a18417deffe2d7cd to your computer and use it in GitHub Desktop.
AutoHotKey configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Reference
- Using Capslock as another modifier key
https://autohotkey.com/board/topic/51959-using-capslock-as-another-modifier-key/ - Capslock+
https://github.com/wo52616111/capslock-plus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://ahkcn.sourceforge.net/docs/Tutorial.htm
https://autohotkey.com/download/