Created
October 16, 2018 14:56
-
-
Save iamsilvio/a56cea81edb5a8e852257f21c2907e50 to your computer and use it in GitHub Desktop.
Map caps lock to Ctrl on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-> Map caps lock to control (Run as Admin -> reboot required) | |
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | ForEach-Object { "0x$_"}; | |
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout'; | |
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment