How to remap Caps Lock to CTRL on windows 7 with no admin rights and no third party applications

3

1

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

Posted 2015-05-04T11:34:45.497

Reputation: 312

1You can't. If you don't want to use third-party software and you don't have the required permissions to modify the registry then you have eliminated both options. Have somebody who does have those permissions make those modifications for you. – Ramhound – 2015-05-04T11:50:13.833

Answers

1

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

Posted 2015-05-04T11:34:45.497

Reputation: 13

Welcome to Super User! Please read the question again carefully. Your answer does not answer the original question. The OP specifically stated "not installing 3rd party stuff". – DavidPostill – 2015-09-23T20:30:54.547

@DavidPostill I understand but I believe my answer is still useful as it requires no admin rights which OP has no choice over. I found this question when searching for the exact same thing. Not installing 3rd party things (that require no admin rights) is a "desire", which someone had already said there is no solution. ahktoexe can be deleted after use and the final file is all that remains. It is up to OP if remapping is more or less important than running an executable. – alexjj – 2015-09-24T21:48:03.580