HOWTO: Toggle the NUM LOCK, CAPS LOCK, and SCROLL LOCK Keys (127190)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
This article was previously published under Q127190 SUMMARY
The documentation for SetKeyboardState() correctly says that you cannot
use this API to toggle the NUM LOCK, CAPS LOCK, and SCROLL LOCK keys.
You can use keybd_event() to toggle the NUM LOCK, CAPS LOCK, and SCROLL
LOCK keys under Windows NT. The same technique works for toggling CAPS LOCK
and SCROLL LOCK under Windows 95, but it will not work for NUM LOCK.
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbhowto kbInput kbKeyIn KB127190 |
---|
|