Skip to content

Instantly share code, notes, and snippets.

@ngnguyen1
Last active January 17, 2016 18:06
Show Gist options
  • Save ngnguyen1/a9a7f3a430834881bbaa to your computer and use it in GitHub Desktop.
Save ngnguyen1/a9a7f3a430834881bbaa to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,07,00,00,00,1d,00,38,00,38,00,1d,00,1d,e0,38,e0,38,e0,1d,e0,3a,00,01,00,01,00,3a,00,00,00,00,00
// This is comments, pls don't paste your file
// Create file named your-file.reg
// This file will swap my keys map: ESCAPE to CAPSLOCK, and control to alt keys.
// Windows Registry Editor Version 5.00 => this line to indicate that registry editor version, it's for windows 7, 8. (not sure worked in windows 10)
// Follow registry editor version line must be blank line.
// See more about syntax in .reg file at [1].
// To understand how to insert correct hex, may be this article [2] will help you. If not, pls leave your comment, i answer asap.
// Some scancode i was used:
// 1d 00 Left Ctrl
// 38 00 Left Alt
// 1d e0 Right Ctrl
// 38 e0 Right Alt
// 3a 00 Capslock
// 01 00 Escape
// 5b e0 Left Windows Key
// 5c e0 Right Windows Key
// 5d e0 Windows Menu Key
// [1]. https://support.microsoft.com/en-us/kb/310516
// [2]. http://www.howtogeek.com/howto/windows-vista/disable-caps-lock-key-in-windows-vista/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment