My caps lock key is remapped. How do I disable the caps is active flag under windows?

I remapped my caps lock key to Ctrl with the help of ac'tivAid and its extension RemapKeys.

When my PC is overloaded the keyboard works like when the extension isn't active, so that caps lock works as caps lock, I can sometimes activate the normally disabled key. When I later type my letters get capitalized.

Does anyone know of a windows method similar to the linux command "setleds -caps" so I can disable my caps lock flag after my computer becomes responsive again?

I think I tried a on-screen keyboard like in this answer but that got catched by the ac'tivAid extension also.

I just tried to remap the key for Windows via the registry, but isn't there any command, WinAPI call or 3rd-party tool to manipulate the keyboard flags?


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 

I dropped the Windows Registry manipulation and instead used an AutoHotkey script I found while researching:

 CapsLock einzeln gedrückt als ESC, mit Taste als Ctrl.
; Author: fwompner gmail com
SetCapsLockState, alwaysoff
SetCapsLockState, alwaysoff
Send {LControl Down}
KeyWait, CapsLock
Send {LControl Up}
if ( A_PriorKey = "CapsLock" )
    Send {Esc}

The first comment line translates to "A press and release of CapsLock emits a ESC keypress, while holding CapsLock and pressing a normal key acts as if Control was pressed."

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.