4

On my work PC, with no admin and a desire of not installing 3rd party stuff:

How can i remap the Caps Lock key to function as CTRL?

I'm aware of system wide registry hacks with this key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout

But this fails to write the key, I assume, due to access issues.

And a per user approach:

HKEY_CURRENT_USER\Keyboard Layout

Which can be writen, but to no effect. I assume this is due to the key only being used in pre-vista versions of windows, as comments around the Internet suggests.

Any suggestion on how this can be achieved?

kidmose
  • 382

1 Answers1

2

I took this from the emacs wiki (which I can't link to as I don't have enough rep on superuser). Use Autohotkey. You can install a portable version that needs no admin rights.

However, I just used ahktoexe and the script listed on the emacs site to make an exe that I run (without needing admin rights). The script is specific for emacs but you could just remove the if statement and make it permanent.

Make a file called script.ahk add this to it:

Capslock::Control

Run it through ahktoexe, and there you go. Put the exe in startup on Start Menu and it'll run every time you turn on the PC.

alexjj
  • 23