Skip to content

Commit 1175a85

Browse files
authored
Create map_caps_to_ctrl.ps1
1 parent 48346c4 commit 1175a85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

windows/map_caps_to_ctrl.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
2+
3+
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
4+
5+
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);

0 commit comments

Comments
 (0)