Untitled

 avatar
unknown
plain_text
6 months ago
1.2 kB
3
Indexable
$CapsLock::Send {Blind}{Esc} ; Remap CapsLock to Esc

$Esc::Send {Esc} ; Remap Esc key to itself

Esc & h::Send {Left} ; Remap Esc + j to Left Arrow
Esc & j::Send {Down} ; Remap Esc + k to Down Arrow
Esc & k::Send {Up} ; Remap Esc + l to Up Arrow
Esc & l::Send {Right} ; Remap Esc + ; to Right Arrow
Esc & s::Send ^#{Right} ; Remap Esc + s to Ctrl+Win+Right Arrow
Esc & a::Send ^#{Left} ; Remap Esc + a to Ctrl+Win+Left Arrow

CapsLock & h::Send {Left} ; Remap CapsLock + j to Left Arrow
CapsLock & j::Send {Down} ; Remap CapsLock + k to Down Arrow
CapsLock & k::Send {Up} ; Remap CapsLock + l to Up Arrow
CapsLock & l::Send {Right} ; Remap CapsLock + ; to Right Arrow
CapsLock & s::Send ^#{Right} ; Remap CapsLock + s to Ctrl+Win+Right Arrow
CapsLock & a::Send ^#{Left} ; Remap CapsLock + a to Ctrl+Win+Left Arrow

; Check if both left and right Shift keys are held down

~RShift & ~LShift::
    if (GetKeyState("LShift", "P") && GetKeyState("RShift", "P")) {
        SetCapsLockState, % (GetKeyState("CapsLock", "T")) ? "Off" : "On"
    }
    return

~LShift  & ~RShift::
    if (GetKeyState("LShift", "P") && GetKeyState("RShift", "P")) {
        SetCapsLockState, % (GetKeyState("CapsLock", "T")) ? "Off" : "On"
    }
    return
Editor is loading...
Leave a Comment