Power on automatically open NumLock

Source: Internet
Author: User

Previously seen by modifying the registry implementation, but not a few days to expire, such methods do not recommend to try, because modify the registry is possible to make the system exception

The following few lines of simple code can be implemented

1 #include <Windows.h>23int  main () {4     if ( ! getkeystate (Vk_numlock)) {5         000); 6         0 0 ); 7     }8 }


And then let the program boot up and run just fine, have not done, you can copy the program to the following directory

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Power on automatically open NumLock

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.