Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was looking for a way to disable the CAPS LOCK functionality in windows. Unfortunately all solutions are about remapping it to NOTHING or other keys. I am a gamer and want to use the CAPS LOCK key for in-game function but I don't want Windows to CAPITALIZE everything after I use caps lock (for example using CAPS lock for changing target in an space FPS which uses WASD to fly).

Example:

CAPS LOCK is mapped to "Change Target" in my gam

I press CAPS Lock, Windows from now on will capitalize all my typed text

I shoot my target but I need assistance, so I enter the chat now I want to type but all the letters are capitalized

So to avoid capitalized text I again press CAPS LOCK but then my target is changed, however now I cn type with normal text.

So is there any trick to disable capitalizing functionality in Windows without having to remap the CAPS LOCK key to something else?

In short: I want it to be detected by games etc without enabling capitalized text.

share|improve this question
1  
Why not remap Caps Lock to some other key that you don't use - F12 maybe, or backslash - then tell the game to use that key for "Change Target"? –  Harry Johnston Oct 22 '12 at 23:18
    
@HarryJohnston NumLocker works great. –  user144773 Oct 23 '12 at 6:39
add comment

2 Answers

up vote 0 down vote accepted

There is one way to achieve the result you want, but it's not ideal. You could remap actual keys so capslock state does not affect them. In other words, to ignore capslock modifier. This works (in fact I'm writing this with capslock ON and modified keyboard - but there is a glitch - if effectively also disables producing capital letters with shift. While there is possibility to make a separate mapping for that, it's not recognized by any programs I tried (with the exception of layout mapper tester itself). So whenever I need to put a capital, I have to switch to normal keyboard layout (via ctl+alt+digit shortcut) - not super convenient, but it does not change caps state!

I've used Microsoft keyboard layout Creator 1.4 to build the layout.

Some background information on how the keyboard evens are actually processed (to add to your discussion with soandos: (simplified):
when a key is pressed it produces a scancode. This scancode is processed by windows (keyboard driver) and translated into virtual key. This virtual key (value) is then sent to application. For capslock VC_CAPITAL is being sent (and interpreted by your game). Virtual code is not character key yet. After receiving VK_CODE (and maybe reacting somehow to it) application will ask OS for actual character code. Now what code is returned to application depends on several factors OS keeps track of - capslock status being one of them. That's why capslock works across apps - as it's being tracked by OS and not (only) an app. More here

share|improve this answer
    
that's one possible solution, better than last answer, however NumLocker (freeware) seemed to work perfectly for me. –  user144773 Oct 22 '12 at 0:02
    
@GamErix Ah good - nice little utility, worth to know. It's pluggable architecture so a lot is possible with dedicated 'plugins'. –  wmz Oct 22 '12 at 0:26
add comment

What you are asking for is not possible. If a game detects a key, it can make it do whatever it wants (in this case enter capitalized text). There is no way to change that without changing the code for the game.

Expanding:

Hitting the caps lock key is in most cases a hardware thing (a light may go on etc). That behavior is then mapped by whatever application you are using at the time. If your game decided to ignore that, it could. If it wanted to make every letter you typed after that an 'A' it could. In this case, it decided to follow convention and make letters capitalized if the caps lock key is on.

Once you leave the game, the caps lock key will still be on because its a hardware thing. Windows sees that, and also decides to follow convention and make your letters capitalized.

share|improve this answer
    
please explain why the CAPS LOCK command cannot be intercepted? I want the key be able to be detectable but at the same time not enabling "CAPS LOCK" in windows. This has to be possible. –  user144773 Oct 21 '12 at 19:28
    
maybe this is more clear: "I'm wondering if there is a way to actually just disable the function of the key (as a caps toggle) without actually remapping the key itself?" –  user144773 Oct 21 '12 at 19:30
    
nono it's not the game but WINDOWS capitalizes the text. –  user144773 Oct 21 '12 at 19:30
    
basicly it goes this way: CAPS LOCK -> hardware switch -> I type 'a' -> Windows Sends 'A' to the Game. –  user144773 Oct 21 '12 at 19:46
    
so I want to send 'a' directly to the game. –  user144773 Oct 21 '12 at 19:47
show 6 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.