How do I disable the CAPS LOCK function WITHOUT disabling the key or remapping it?

8

2

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.

user144773

Posted 2012-10-21T19:22:57.493

Reputation:

1Why 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 – 2012-10-22T23:18:50.730

1

@HarryJohnston NumLocker works great.

– None – 2012-10-23T06:39:19.427

Answers

1

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

wmz

Posted 2012-10-21T19:22:57.493

Reputation: 6 132

that's one possible solution, better than last answer, however NumLocker (freeware) seemed to work perfectly for me. – None – 2012-10-22T00:02:30.103

@GamErix Ah good - nice little utility, worth to know. It's pluggable architecture so a lot is possible with dedicated 'plugins'. – wmz – 2012-10-22T00:26:18.893

0

Some keyboards (such as those from WASD Keyboards) have hardware DIP switches that allow you to modify the function of certain keys, including CAPS LOCK. In the case of the WASD V2 keyboards, turning on Switch 3 will let CAPS LOCK works like the left control key.

V2/V2B User's Guide

Christoph

Posted 2012-10-21T19:22:57.493

Reputation: 796

0

I recently ran into this exact issue, so I made my own keyboard layout using KbdEdit where the letter keys ignore caps lock (without changing the behavior of shift). The layout is publicly available here; simply run the installer and switch to the new layout in your language bar.

Ryan Hilbert

Posted 2012-10-21T19:22:57.493

Reputation: 91

0

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.

soandos

Posted 2012-10-21T19:22:57.493

Reputation: 22 744

1please 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. – None – 2012-10-21T19:28:52.320

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?" – None – 2012-10-21T19:30:24.877

nono it's not the game but WINDOWS capitalizes the text. – None – 2012-10-21T19:30:48.980

basicly it goes this way: CAPS LOCK -> hardware switch -> I type 'a' -> Windows Sends 'A' to the Game. – None – 2012-10-21T19:46:50.457

so I want to send 'a' directly to the game. – None – 2012-10-21T19:47:25.997

No. Its caps lock->hardware switch->you type 'a'->windows sends 'a' and caps lock is pressed -> game prints 'A" – soandos – 2012-10-21T19:50:49.407

in the games source code there is nothing that detects if caps lock is on to capitalize the text. So I think windows is doing it. Can you please send a link on how you know that? :$ (reference) – None – 2012-10-21T19:52:06.927

It is going a text box from a library? That is where the code would be (and you may or may not have access to that code) – soandos – 2012-10-21T19:54:19.123

tried the registry hack and some games crash when the caps lock is pressed on mapping and some games return 'NONE' key nd some just wait for other input buttons.. – None – 2012-10-21T19:54:25.877

ah also I tried 'sending' caps lock to a game via program which can send text messages by pressing a key on the keyboard, it also workd with keys like enter, control and caps lock. So I mapped Caps Lock in the program to return and when I used return the program sent the key to the game and it changed my target but the text typing wasn't capitalized after that. – None – 2012-10-21T20:02:15.510

ok just mapped it to F13 – None – 2012-10-21T21:03:38.490