5

I found this question:

Which would likely work great if I had admin rights on my machine. But I don't.

I also found a couple of links about remapping keys without admin rights in Windows 7. The suggested solution is to use the following:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 

(Save in a file with .reg extension, double-click to apply to the registry, and then reboot.)

This is the same as the first linked solution except for the key to edit; the HKEY_CURRENT_USER key can be edited without admin rights.

Unfortunately, this doesn't work on Windows 10. (It applies and creates the key, but even after reboot the Caps Lock key is caps lock, not ctrl.)

In regedit I see that under HKEY_CURRENT_USER\Keyboard Layout there are subfolders (subgroups?) for "Preload", "Substitutes", and "Toggle". It seems likely to me that putting something in "Substitutes" might be the way to do this for Windows 10 but I've no idea what to put, and there is no documentation I can find.

How can I remap Caps Lock to Ctrl in Windows 10 without admin rights?

6
  • I'm a little surprised that anyone still wants to do that this many years after the Ctrl key was moved, but... Would using AutoHotKey be an option for you? Commented Aug 19, 2019 at 19:51
  • I know how if you can access Local Machine, can you?
    – Cris
    Commented Aug 19, 2019 at 19:54
  • 1
    @Cris, I'm not sure how to tell. If you post your answer I can try it.
    – Wildcard
    Commented Sep 18, 2019 at 6:48
  • 1
    Does this answer your question? Map capslock to control in Windows 10
    – user202729
    Commented Dec 13, 2023 at 7:19
  • @user202729 sorry but no, it doesn't. Please read the first couple sentences of my post, where I already linked to that same question you just linked.
    – Wildcard
    Commented Dec 13, 2023 at 8:04

2 Answers 2

10

You can do that by using the free AutoHotKey. Since you cannot install software, you may get the portable version from AutoHotKey Downloads.

Download AutoHotkey.zip, unzip it and use as follows.

This .ahk file will do the remapping:

Capslock::Ctrl

You may set AutoHotKey as the handler for .ahk files by running a modified version of these commands for the right folder (if you can):

assoc .ahk=AutoHotkeyScript
ftype AutoHotkeyScript="C:\path\to\AutoHotkey.exe" "%1"

If you cannot run the above, just start:

"C:\path\to\AutoHotkey.exe" "myscript.ahk"

You may also put a batch file that does the above (or similar) in your Startup folder.

2
  • Works nice. But has no autostart feature and can not be minimized to system tray Commented Oct 4, 2023 at 11:21
  • @JuergenSchulze: AHK normally only works in the traybar, and the .ahk file can be put in the user's Startup group that is found at C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.
    – harrymc
    Commented Oct 4, 2023 at 13:55
1

There is a small program called Uncap that was made exactly for this task (althought it can also be used to remap other keys).

How to make it work:

  1. Download the executable (uncap.exe) from its GitHub Releases page.

  2. Save the executable file to a permanent location. For example:

    • Open a Windows Explorer window (Windows logo key + E).
    • Click in the address bar, type %USERPROFILE%, then press Enter. This opens your user profile folder.
    • Create a new folder named Programs there.
    • Move the uncap.exe executable file you downloaded to this folder.
  3. Create a shortcut inside your user's Startup folder to make Uncap initialize at login:

    • Open a Windows Explorer window (Windows logo key + E).

    • Click in the address bar, type shell:startup, then press Enter. This opens your automatic initialization folder (Startup).

    • Righ-click inside the window, then select New > Shortcut in the menu.

    • In the dialog, find the executable or just paste this text as the location if you followed the example above:

      "%USERPROFILE%\Programs\uncap.exe" 0x14:0xa2
      
    • Make sure to include the '0x14:0xa2' bit after the executable path (separated by a space). It instructs Uncap to map Caps Lock to Right Control instead of mapping it to Escape by default.

    • Finish creating the shortcut. The next time you log in, Uncap will run automatically and remap Caps Lock.

    • To make the mapping work immediately, double-click the shortcut. A small window will briefly open and close.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .