Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Autohotkey script to turn CapsLock in a new independent meta key for special characters. Assumes a Colemak layout underneath.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetCapsLockState AlwaysOff
; left hand , top row
CapsLock & q::
Send £
return
CapsLock & w::
Send &
return
CapsLock & f::
Send *
return
CapsLock & p::
Send ~
return
CapsLock & g::
Send `:
return
; left hand, home row
CapsLock & a::
Send {RAlt}``
return
CapsLock & r::
Send {#}
return
CapsLock & s::
Send @
return
CapsLock & t::
Send $
return
CapsLock & d::
Send `%
return
; left hand, bottom row
CapsLock & c::
Send {^}
return
CapsLock & v::
Send ``
return
; right hand, top row
CapsLock & j::
Send `-
return
CapsLock & l::
Send )
return
CapsLock & u::
Send ]
return
CapsLock & y::
Send {}}
return
CapsLock & `;::
Send >
return
; right hand, home row
CapsLock & h::
Send _
return
CapsLock & n::
Send (
return
CapsLock & e::
Send [
return
CapsLock & i::
Send {{}
return
CapsLock & o::
Send <
return
; right hand, bottom row
CapsLock & k::
Send {=}
return
CapsLock & m::
Send {+}
return
CapsLock & ,::
Send `\
return
CapsLock & .::
Send `|
return
CapsLock & /::
Send {!}
return
; NUMPAD
; right hand, top row
#if GetKeyState("CapsLock", "P")
Shift & l::
Send 1
return
Shift & U::
Send 2
return
Shift & Y::
Send 3
return
; right hand, home row
Shift & N::
Send 4
return
Shift & E::
Send 5
return
Shift & I::
Send 6
return
; right hand, bottom row
Shift & M::
Send 7
return
Shift & <::
Send 8
return
Shift & >::
Send 9
return
Shift & ?::
Send 0
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.