Disabling caps lock

Started by
0 comments, last by ddn 23 years, 3 months ago
How would i go about programmaticly disabling the caps lock in win32? -ddn
Advertisement
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

This topic is closed to new replies.

Advertisement