Compare commits

...

2 Commits

Author SHA1 Message Date
Noah Masur
7a22e798fc
autohotkey v2 for windows 2024-06-02 08:08:05 -04:00
Noah Masur
196d2e53e0
Create caps-lock-ctrl.reg for windows 2024-06-02 07:43:15 -04:00
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#Requires AutoHotkey v2.0
#SingleInstance
ih := InputHook("B L1 T1", "{Esc}")
*Ctrl::
{
ih.Start()
reason := ih.Wait()
if (reason = "Stopped") {
Send "{Esc}"
} else if (reason = "Max") {
Send "{Blind}{Ctrl down}" ih.Input
}
}
*Ctrl up::
{
if (ih.InProgress) {
ih.Stop()
} else {
Send "{Ctrl up}"
}
}

View File

@ -0,0 +1,8 @@
Windows Registry Editor Version 5.00
; Changes registry to map Caps Lock key to Ctrl key
; More info here: https://www.autohotkey.com/boards/viewtopic.php?p=468638#p468638
; And here: https://superuser.com/a/949533
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00