2023년 3월 11일 토요일

"Swap Windows and Alt Keys for REALFORCE R2 Mac Keyboard on Windows

New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout' -Name 'Scancode Map' -Value ([byte[]](0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x38,0x00,0x5b,0xe0,0x5b,0xe0,0x38,0x00,0x5c,0xe0,0x38,0xe0,0x38,0xe0,0x5c,0xe0,0x38,0xe0,0x5d,0xe0,0x00,0x00,0x00,0x00)) -PropertyType 'Binary'
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& {Remove-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout' -Name 'Scancode Map' -Force}"

reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f

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,06,00,00,00,38,00,5b,e0,5b,e0,38,00,\
  5c,e0,38,e0,38,e0,5c,e0,38,e0,5d,e0,00,00,00,00

Here is a breakdown of the hex values:

  • 00,00,00,00,00,00,00,00 - Header indicating the start of the binary value.
  • 06,00,00,00 - Length of the binary value.
  • 38,00 - Scan code for the left Alt key.
  • 5b,e0 - Scan code for the left Windows key.
  • 5b,e0 - Scan code for the left Windows key.
  • 38,00 - Scan code for the left Alt key.
  • 5c,e0 - Scan code for the right Windows key.
  • 38,e0 - Scan code for the right Alt key.
  • 38,e0 - Scan code for the right Alt key.
  • 5c,e0 - Scan code for the right Windows key.
  • 38,e0 - Scan code for the right Alt key.
  • 5d,e0 - Scan code for the Application key.
  • 00,00,00,00 - End of binary value marker.

댓글 없음:

댓글 쓰기

Free Partition Recovery Tool: TestDisk

Lost a partition while updating Ventoy, but successfully recovered it using TestDisk. Ventoy's Non-Destructive mode, allowing installati...