This article is a mirror article of machine translation, please click here to jump to the original article.

View: 24350|Reply: 0

[Source] .net/C# gets Caps lock case status and modifications

[Copy link]
Posted on 5/27/2017 11:19:37 AM | | | |


The capslock key controls the case state, and when we simulate the input, we may need to simulate the uppercase state, how to do it?

The following code can get the current state and change the case:



When we want to set the capitalization status, we only need one line of code to do it! SetCapsLock(true);




Previous:.net/c# to switch between English and Chinese
Next:PHP json_encode Chinese become a question mark
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com