Remap capslock-key to modifier key ctrl+shift+alt with Autohotkey

2.3k views Asked by At

I'd like to use Capslock as a modifier key. To create this without risk of clashing with other key combinations, I'd like to use Ctrl+Shift+Alt, i.e. Capslock+u would become Ctrl+Shift+Alt+u. Capslock+p would become Ctrl+Shift+Alt+u.

I would like to only configure the modifier key mapping in autohotkey, not each combination individually.

I've tried:

Capslock::^!+

and

Capslock::Send ^+{Shift}

But the first is recognized as Ctrl+Shift+PlusSign and the second doesn't seem to work at all.

1

There are 1 answers

1
fxam On

Try this

$^CapsLock::CapsLock  ; Use Ctrl+CapsLock to toggle CapsLock

; Refer to http://ahkscript.org/docs/misc/Remap.htm
CapsLock::
    SetKeyDelay -1
    Send {Blind}{Ctrl DownTemp}{Shift DownTemp}{Alt DownTemp}
return

CapsLock up::
    SetKeyDelay -1
    Send {Blind}{Ctrl Up}{Shift Up}{Alt Up}
return