Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ddn

Disabling caps lock

This topic is 6494 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How would i go about programmaticly disabling the caps lock in win32? -ddn

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!