At work I have a Windows PC. I don't have much personal experience with Windows which is why I am asking.
I want to remap the caps lock key to function as a control key. Ideally, on a per-user basis as sometimes other people use the workstation and I don't want to confuse them.
Was able to install Auto Hot Key. A test script worked. However I couldn't find working instructions about how to do this specific remapping. Example scripts I found seem to have some conflict between v1 and v2 of AH.
I don't have admin access however I could probably ask for something, but it would have to work immediately without a lot of fooling around. I will not be granted admin access to try a bunch of things til I find something that works.
You will probably need admin access to install it, however.
Edit: Actually, apparently you don't? I just installed it on my work PC here, and did not get any UAC prompts or anything. It can indeed reassign your caps lock key -- I just tested this, and it works. (I mapped it to left ctrl.)
Sorry for asking but is there any reason why caps lock? Because.. You are a lucky winner of “choosing one of the most problematic keys to remap” award..
I have small hands that makes certain key combos involving ctrl difficult/uncomfortable to reach
at home I have caps lock remapped and therefor I am constantly using it by muscle memory
Even before I had remapped it at home, I would sometimes enable it by accident which is annoying
in previous versions of windows (I think windows 8?) I could disable caps lock entirely in a system setting but it seems they have removed this option from more recent version
Okay, all makes sense. When you are using the keyboard a lot, your comfort is most important. The worst part about Caps Lock is that it is more embedded into the system inner-workings, as for example — it is used for certain crucial shortcuts, especially when using Chinese language.
I don't see how it would be a problem unless you reassigned it while caps lock was enabled, in which case you would have to reboot (or temporarily revert your remap) to turn it off.
I can think of precious little software that actually requires caps lock for anything, and otherwise for normal typist tasks you can just use shift. I never use caps lock for anything, personally. (Ditto with num lock. My keyboard has a full number pad and a full set of arrow/insert keys. There is no reason for my number pad to ever not be a number pad.)
I was asking because it is actually a problem for two reasons, one is that capslock has more states than other keys, plus it is more complicated to tinker with via AutoHotKey, they even documented it nicely buuut.. the official method did not work for me — I just tested it.
I did it in a hurry so there might be “me” problem somewhere too.
At home, once in a while caps lock turns itself on somehow. I have a shell alias to fix the problem:
UNCAPS='xdotool key Caps_Lock'
Should this happen at work I was thinking to either temporarily disable the application that is doing the remapping, or use some sort of onscreen keyboard to inactivate the caps lock.