Skip to content

Instantly share code, notes, and snippets.

@mrrusof
Created July 13, 2019 22:22
Show Gist options
  • Save mrrusof/fcbaee6dd0e7db0237fe394364678602 to your computer and use it in GitHub Desktop.
Save mrrusof/fcbaee6dd0e7db0237fe394364678602 to your computer and use it in GitHub Desktop.
Swap left control and caps lock in Windows.
Windows Registry Editor Version 5.00
; The hex data is in five groups of four bytes:
; 00,00,00,00,\ header version (always 00000000)
; 00,00,00,00,\ header flags (always 00000000)
; 02,00,00,00,\ # of entries (2 in this case) plus a NULL terminator line.
; Entries are in 2-byte pairs: Key code to send & keyboard key to send it.
; Each entry is in LSB, MSB order.
; 1d,00,3a,00,\ Send LEFT CTRL (0x001d) code when user presses the CAPS LOCK key (0x003a)
; 3a,00,1d,00,\ Send CAPS LOCK (0x3A) code when user presses the LEFT CTRL key (0x001d)
; 00,00,00,00 NULL terminator
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,\
00,00,00,00,\
04,00,00,00,\
1d,00,3a,00,\
3a,00,1d,00,\
00,00,00,00
@vn7n24fzkq
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment