1

To swap the Caps Lock and Escape keys on Windows, there are several methods available. Here are some of them:

  1. Using PowerToys:
  • Download and install PowerToys from the Microsoft Github page.
  • Open PowerToys and browse to the Keyboard Manager.
  • Enable the Keyboard Manager and click Remap a key.
  • Choose Caps Lock -> Escape.
  1. Using PowerShell:
  • Open Windows PowerShell (Admin) by pressing Win + X.
  • Enter these commands:
$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);
  • Save and reboot.
  1. Using AutoHotkey:
  • Download and install AutoHotkey.
  • Create a new script and add the following lines:
Capslock::Esc
Esc::Capslock
  • Save the script and run it.
  1. Using Uncap:
  • Download and run Uncap, an open-source tool that maps Caps Lock to Escape or any key to any key without setup or configuration files.

Note that some of these methods may require administrator privileges or the installation of third-party software.

you are viewing a single comment's thread
view the rest of the comments

I can't say I've ever wanted to do this...

this post was submitted on 27 Oct 2023
1 points (100.0% liked)

Windows

1 readers
1 users here now

founded 1 year ago
MODERATORS