Advertisement
acignetti

Ctrl Caps Lock switch sript

Oct 28th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $hexData = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"}
  2. $kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout'
  3. New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexData)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement