27

I like to use the number keys for cursor movement. But every so often I hit NumLock by mistake, and then instead of moving the cursor where I want it, I end up with an input like this:

44444488

How can I permanently disable it? Something compatible with the regedit solution for getting rid of Caps Lock given here would be perfect.

0

10 Answers 10

10

Here is a hack to disable both caps lock and num lock:

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,
04,00,00,00,3A,00,00,00,
00,00,3A,00,00,00,45,00,
00,00,00,00,00,00,00,00

Here is both hacks combined. Numlock disabled + ctrl swapped with caps lock.

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,04,00,00,00,3A,00,1D,00,1D,00,3A,00,00,00,45,00,00,00,00,00

OK, here is the a scancode map for disabling Numlock. I looked here, numlock is hex 45. Back up registry beforehand.

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,00,00,45,00,00,00,00,00

Actually Nikolay, that MSFT tech forum link is a little short, see this info at askvg. Toggling (1) doesn't actually disable numlock, it merely sets the state at boot time. In fact it does three things, sets capslock on, numlock off, scrollock off. Here are the rest of the settings. So this does not look like an answer for the OP's issue.

http://www.askvg.com/force-capslock-numlock-and-scrolllock-keys-behavior-using-windows-registry/

0 - Turn all indicators Off (NumLock, CapsLock, ScrollLock)
1 - Turn CapsLock On
2 - Turn NumLock On
3 - Turn CapsLock and NumLock On
4 - Turn ScrollLock On
5 - Turn CapsLock and ScrollLock On
6 - Turn NumLock and ScrollLock On
7 - Turn all indicators On (NumLock, CapsLock, ScrollLock)
5
  • I already have the hex scancode from the linked question to disable my caps lock. How do they interact? Dec 16, 2013 at 2:17
  • ok, hang tight, I will mix the two into one big setting. Dec 16, 2013 at 2:18
  • Notice how for this mapping of 3 scan codes, I toggled the number 4. In the single scancode mapping I set it to 2. Basically every mapping you make + 1 is the rule for that. That is why the original hack (of two mappings) was set to 3. Can add more if you follow the pattern. They should interact just fine. Dec 16, 2013 at 2:26
  • post the exact code you have, i might have done the wrong sample from that thread, as i did the one with swapping ctrl and caps lock, which does not disable capslock like you mention in your comment. Confirm Dec 16, 2013 at 2:30
  • Apparently, in Windows 10, this issue is finally solved! twitter.com/patrickv/status/856764885853753344 Apr 25, 2017 at 7:14
17

A good tool for such tasks is SharpKeys.

SharpKeys is a Registry hack that is used to make certain keys on a keyboard act like other keys. For example, if you accidentally hit Caps Lock often, you could use this utility to map Caps Lock to a Shift key or even turn it off completely.

It's small, portable and does the same as the accepted answer above, only via a GUI enter image description here

5
  • A definite +1, provides a nice basic GUI to modify the keyboard
    – topherg
    Feb 24, 2014 at 15:10
  • It says there that its usable until Windows Vista, does it work for Win 7 and or 8? Oct 21, 2015 at 9:45
  • I just used it on Windows 10 and it's working. Also it remembers the modifications you made allowing you to rollback easily. But you can't set the default state of NumLock with it, you'll have to modify the registry HKEY_CURRENT_USER\Control Panel\Keyboard\InitialKeyboardIndicators see VL-80 answer.
    – gwenzek
    Jun 23, 2016 at 9:06
  • Perfect, I wanted Num Lock always on. Used superuser.com/questions/952669/… to force it on on boots, and mapped Num Lock key to nil. Presto, Num Lock always on and can't put it off again.
    – TT.
    Jan 20, 2018 at 11:09
  • This used to work but no longer does...
    – endolith
    Sep 14, 2020 at 12:48
6

This is just quotation of Microsoft Tech forum:

You might have tried this before, but here's how to disable it through the registry:

Click Start, click Run, and type regedit to open the Windows registry editor. In the registry, open the below folders.

HKEY_CURRENT_USER\ Control Panel\ Keyboard\

Within the keyboard folder, you should have a string value named "InitialKeyboardIndicators" with a value of 0, 1, or 2. Below is the explanation of each of these values.

0 = Num Lock is turned OFF after the logon.
1 = Disable Num Lock.
2 = Numlock is turned ON after  the logon.
2
  • 1
    On some machines you may see this value in your key, "2147483648" - Honor thy motherboard BIOS setting. Dec 16, 2013 at 1:41
  • 1
    1 = Disable Num Lock doesn't work, you can still turn it on/off by pressing it.
    – Burjua
    Jan 10, 2019 at 10:54
5

Or the quickest and easiest way since our whole company is 10-key literate and hates it when it reverts to the flippin' duplicated arrow keys.

  1. Push the Numlock key so it's in the desired state, Windows XP and forward remembers the user state in the user profile.
  2. Pop the Numlock Key Cap off and put it in your drawer. Since you like it in a permanent state, it pretty much stays that way forever more.
  3. If someone else logs in for the first time, use a pen to activate numlock if it's desired, it stays that way on that user profile forever more.

Has worked very well for nearly the last decade on all workstations, requires no fiddling programming, startup script or registry edits.

2
  • 1
    I've never seen it "remember the user state" in 20 years on all the dozens of XP forward Windows computers that I've been on. And that's the problem. Just HOW to get it to remember.
    – Doug Null
    May 1, 2014 at 12:50
  • 1
    Numlock state also is affected a BIOS setting in this case. Boot with Numlock active will be one of the BIOS settings. For me, it's been the opposite, the systems I purchase must be blessed by some unholy demon from hell to actually operate properly and remember user state. Sure freaks out the staff when it deactivates in our company, hence the key removal. May 1, 2014 at 13:52
3

Here are some ways which didn't work for me:

  • I installed SharpKeys, but couldn't see the NumLock key on the list of keys to add (and anyway, not keen on software that mentions it needs Windows 2003 to run!)

  • I tried changing the registry setting, both in the key shown and in the USER/DEFAULT key - this had no effect

  • I have a Dell Precision. In the BIOS, you can disable the NumLock key on start-up, but this doesn't stop it then being toggled back on.

However, years after first posting this question, I discovered the Microsoft PowerToys utility, which runs in Windows 10 and 11 (that's what I'm using). You can download the installation file from GitHub. Here's the section which does what I want:

enter image description here

2

Power Toys

Please take a look at Power Toys in docs.microsoft.com

https://docs.microsoft.com/en-us/windows/powertoys/

Works on Windows 10

0

(This is an expansion on Knuckle-Dragger's post that adds a few details.)

Keys can be mapped in the registry if the appropriate key scancode can be discovered. Generally these days keyboard specifications are regularly used but manufacturers may occasionally have unique ones. A list of the scancodes can be found in this documentation Keyboard Scan Code Specification and some more detail can be found: here.

Hex groupings:

                 00000000 00000000 03000000 1de05de0 55004400 00000000
                                    │       │        │        │
keys, number of to change¹         ─┘       │        │        │
key remap first  (to←from 22221111)²        ┘        │        │
key remap second (if one)                    ────────┘        │
null hex to end (necessary?)                          ────────┘
  ¹ 02=1, 03=2, >2 possible?
  ² hex+e0-or-00, e1 and e2 are rare
  * multimedia keys may be hard to remap, they can be defined uniquely by keyboard manufacturer?!?

These can be put in a registry file (e.g. keyboard_context-menu-to-control.reg):

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,03,00,00,00,1d,e0,5d,e0,55,00,44,00,00,00,00
-1

Remove the key-cap and put it in your drawer. The Insert key was giving me trouble, and the best way to deal with it was to remove it from the keyboard completely. When software turns numlock back on, use a software keyboard to toggle it off again, and attempt to prevent that software from doing it again.

2
  • No seriously, it's effective and works no matter what OS you boot to, whatever VMs you have running, and however many times you format your PC. Sep 22, 2017 at 22:20
  • You say "When software turns numlock back on" - that's exactly my problem. I don't know what software is turning it back on. I'm not accidentally pressing the key - some kind of software is doing it, and I don't know what.
    – Matt
    Oct 13, 2021 at 1:00
-2

Here it is another groovy (if I say so myself ;-) solution, hold the Num Lk key down for 5 sec and windows will give you the choice to receive a differentiated on/off tone when you touch the three lock keys (caps lock, Num Lock, scroll lock). This feature is called Toggle Keys.

1
-2

For Remapping Keyboard Keys 'SharpKeys' is still workling at Win10 (2021.01.20). Thx @nixda!

I used it for Remapping the 'Omen Key' (@ HP OMEN Sequencer Gaming Keyboard) to 'Home' (Pos1) as it was missing otherwise. But I had to reboot my Laptop. If you just want to remap you HP Omen Key to Home, here is the direkt reg key for it:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,47,e0,76,00,00,00,00,00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .