简体   繁体   中英

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

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 , ie 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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM