Skip to content

Instantly share code, notes, and snippets.

@LazerPanther
Last active August 29, 2015 14:17
Show Gist options
  • Save LazerPanther/b17dd2487407f09e9578 to your computer and use it in GitHub Desktop.
Save LazerPanther/b17dd2487407f09e9578 to your computer and use it in GitHub Desktop.

###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}
#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}
#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}
#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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment