Capturing CAPS key changes and updating UI
-
Ok its early and the brain must not be working well this morning. I have a Login dialog that is case sensitive with user names and passwords. What I want to do is alert user when the "Caps Lock" key is pressed (show info in a static text control). What I can't figure out is how to know when the Caps Lock key is pressed. I'm sure this is something that I am just overlooking. Thanks.. Tim :-D
-
Ok its early and the brain must not be working well this morning. I have a Login dialog that is case sensitive with user names and passwords. What I want to do is alert user when the "Caps Lock" key is pressed (show info in a static text control). What I can't figure out is how to know when the Caps Lock key is pressed. I'm sure this is something that I am just overlooking. Thanks.. Tim :-D
-
Ok its early and the brain must not be working well this morning. I have a Login dialog that is case sensitive with user names and passwords. What I want to do is alert user when the "Caps Lock" key is pressed (show info in a static text control). What I can't figure out is how to know when the Caps Lock key is pressed. I'm sure this is something that I am just overlooking. Thanks.. Tim :-D
Rather than polling, you can call
SetWindowsHookEx()
and check forVK_CAPITAL
."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne