Windows salad: The Story Behind automatically enabling the numlock key at startup

Source: Internet
Author: User
ArticleDirectory
    • How numlock is enabled
    • Numlock before User Logon
    • Numlock after User Login
    • Solution: Enable numlock at startup
    • Solution: do not enable the numlock key when starting the instance.
    • Numlockz
    • Reference resources:

The notebook I use is Lenovo E23. it is inconvenient to start the numlock key when the computer starts up. It is annoying to press the FN + numlk key every time. As an efficientProgramClerk, how can we repeat this matter every day? After some searches, I found a solution and shared it with you.

 

How numlock is enabled

When a Windows system is started, it reads a key value from the registry and determines whether to start the numlock, capslk, and scrlock keys based on the key value.

The key value is:

Initialkeyboardindicators

It is of the REG_SZ type and the meaning of the content is:

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)

 

That is to say:If it is set to 0, the numlock key is disabled. If it is set to 2, The numlock key is enabled..

However, the key value is read in different paths before and after logon.

 

Numlock before User Logon

Before logging on to a user

HKEY_USERS \. Default \ Control Panel \ initialkeyboardindicators under keyboard

To determine whether to enable these key values.

Note: For some win machines, the value is 2147483648, that is, the hexadecimal 0x80000000. The last one is valid, indicating 0.

 

Numlock after User Login

After a user logs on

Initialkeyboardindicators under HKEY_CURRENT_USER \ Control Panel \ keyboard

To determine whether to enable these key values.

 

Note:When Windows 7 is shut down, it automatically saves the status of the current numlock key, that is, you change it to invalid. When it is shut down, it overwrites the content you set based on the status of the numlock key.

 

Solution: Enable numlock at startup

1. Set initialkeyboardindicators under HKEY_USERS \. Default \ Control Panel \ keyboard to 2

2. Enable numlock before shutdown

3. Restart

 

Solution: do not enable the numlock key when starting the instance.

1. Set initialkeyboardindicators under HKEY_USERS \. Default \ Control Panel \ keyboard to 0

2. Disable numlock before shutdown

3. Restart

 

Numlockz

For ease of setup, I wrote a numlockz command line program. You can download it from here:

Http://www.box.net/shared/gxv5mqze5j

It is easy to use:

Numlockz/on open the numlockz key

Numlockz/off disable the numlockz key

Numlockz/print displays the registry key value

After setting, you need to press the numlock key and restart the machine.

 

Reference resources:

Http://social.answers.microsoft.com/Forums/en-US/w7hardware/thread/7b48ae6f-fa9c-4bc2-8359-81e0c5e5d6a2

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.