###Wox Launcher Via CapsLock
#NoEnv
SendMode Input
#SingleInstance, Force
#Persistent
; disable CapsLock cmd via [CapsLock]
SetCapsLockState, AlwaysOff
; [Win]+[CapsLock] --> Activate CapsLock
#vk14::
If GetKeyState("vk14", "T") = 1
SetCapsLockState, AlwaysOff
Else
SetCapsLockState, AlwaysOn
Return
; On [CapsLock] key press/release --> trigger Wox launcher through [Alt]+[Space]
vk14::SendInput {Alt Down}{Space Down}
vk14 up::SendInput {Alt Up}{Space Up}
###Wox Launcher Via Alt+F1
or Win+w
#NoEnv
SendMode Input
#SingleInstance, Force
#Persistent
; On [Alt]+[F1], [Win]+[w] key press/release -> trigger Wox launcher through [Alt]+[Space]
!vk70::SendInput {Alt Down}{Space Down}
!vk70 up::SendInput {Alt Up}{Space Up}
#vk57::SendInput {Alt Down}{Space Down}
#vk57 up::SendInput {Alt Up}{Space Up}
###Use all of the above keybindings: CapsLock
, Alt+F1
, Win+w
#NoEnv
SendMode Input
#SingleInstance, Force
#Persistent
; disable [CapsLock]
SetCapsLockState, AlwaysOff
; [Win]+[CapsLock] -> Activate CapsLock
#vk14::
If GetKeyState("vk14", "T") = 1
SetCapsLockState, AlwaysOff
Else
SetCapsLockState, AlwaysOn
Return
; On [Alt]+[F1], [Win]+[w] key press/release -> trigger Wox launcher through [Alt]+[Space]
!vk70::SendInput {Alt Down}{Space Down}
!vk70 up::SendInput {Alt Up}{Space Up}
#vk57::SendInput {Alt Down}{Space Down}
#vk57 up::SendInput {Alt Up}{Space Up}
; On CapsLock key press/release -> trigger Wox launcher through [Alt]+[Space]
vk14::SendInput {Alt Down}{Space Down}
vk14 up::SendInput {Alt Up}{Space Up}