Skip to content

Instantly share code, notes, and snippets.

@AlexRainHao
Last active June 27, 2023 15:19
Show Gist options
  • Save AlexRainHao/8250e6e94b41de044b010c9e1ffa4dbf to your computer and use it in GitHub Desktop.
Save AlexRainHao/8250e6e94b41de044b010c9e1ffa4dbf to your computer and use it in GitHub Desktop.
win10 CapsLock to Ctrl
  • Open PowerShell as Administrator
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};

$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';

New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);

then reboot

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