Last active
September 21, 2022 16:55
-
-
Save FerrielMelarpis/24389a90a1c4e55d9632e171edae63b7 to your computer and use it in GitHub Desktop.
Anne Pro 2 Magic Fn Like Behavior Example
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
; The idea is simple, turn off capslock and use it as FN key (sort of) | |
; Setup a hook to override the default event the capslock key will send. | |
; Then listen to press duration e.g. 0.5s | |
; When the press is longer than 0.5s, the capslock key will function as a modifier | |
SetCapsLockState, AlwaysOff | |
$CapsLock:: | |
Keywait, Escape, T0.5 | |
If ErrorLevel | |
{ | |
; WASD as arrow keys | |
CapsLock & w::send {Blind}{Up} | |
CapsLock & s::send {Blind}{Down} | |
CapsLock & a::send {Blind}{Left} | |
CapsLock & d::send {Blind}{Right} | |
; num rows as fn rows | |
Capslock & 1::send {Blind}{F1} | |
Capslock & 2::send {Blind}{F2} | |
Capslock & 3::send {Blind}{F3} | |
Capslock & 4::send {Blind}{F4} | |
Capslock & 5::send {Blind}{F5} | |
Capslock & 6::send {Blind}{F6} | |
Capslock & 7::send {Blind}{F7} | |
Capslock & 8::send {Blind}{F8} | |
Capslock & 9::send {Blind}{F9} | |
Capslock & 0::send {Blind}{F10} | |
Capslock & -::send {Blind}{F11} | |
Capslock & =::send {Blind}{F12} | |
Return | |
} | |
Send {Escape} | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment