Disabling caps lock
You can''t. Why would you want to?
Do you perhaps mean to turn caps lock off rather than actually disabling it? In that case GetKeyState will tell you the current status and keybd_event can be used to toggle the state. There''s some sample code in MSDN to toggle it, query for "caps lock and toggle".
IMHO you shouldn''t go changing such things on the user. They turned it on, they may have a good reason.
-Mike
Do you perhaps mean to turn caps lock off rather than actually disabling it? In that case GetKeyState will tell you the current status and keybd_event can be used to toggle the state. There''s some sample code in MSDN to toggle it, query for "caps lock and toggle".
IMHO you shouldn''t go changing such things on the user. They turned it on, they may have a good reason.
-Mike
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement