I'm migrating my mac workflow to Windows. One thing I couldn't live without is hyper key which is combination of Ctrl
+ Option
+ Shift
+ Cmd
. I use Karabiner app to remap Capslock
to this Hyper
key. I have heard that Autohotkey is an Karabiner alternative for Windows. Could you guys please help me to emulate this feature in Windows.
My ideal result is:
- Deactivate
Capslock
completely because I rarely use this - Toggle
Capslock
will performESC
key - Hold down
Capslock
will performCtrl
+Alt
+Shift
+Windows
. For exampleCapslock + C
will beCtrl+Alt+Shift+Windows+C
Many thanks in advance!
The following is my attempt with ahk script but it doesn't work at all :(
;-----------------------------------------
; hyper key for windows
;=========================================
; --------------------------------------------------------------
; notes
; --------------------------------------------------------------
; ! = alt
; ^ = ctrl
; + = shift
; # = lwin|rwin
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#UseHook
#InstallKeybdHook
#SingleInstance force
SendMode Input
;; deactivate capslock completely
SetCapslockState, AlwaysOff
;; remap capslock to hyper
Capslock::
SendInput {Blind}{Ctrl Down}{Alt Down}{Shift Down}{LWin Down}
return
Capslock up::
SendInput {Blind}{Ctrl Up}{Alt Up}{Shift Up}{LWin Up}
return
;; vim navigation with hyper
^!+#h:: SendInput {Blind}{Left}
^!+#h up:: SendInput {Blind}{Left Up}
^!+#l:: SendInput {Blind}{Right}
^!+#k:: SendInput {Blind}{Up}
^!+#j:: SendInput {Blind}{Down}
;; popular hotkeys with hyper
^!+#c::^c
^!+#v::^v