How can get whether Caps Lock is on or off?
I tried to search it but all I’m finding is how to toggle or turn it on/off which is exactly opposite of what I’m looking for.
I’m trying to do that in both C++ and Delphi.
Please help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want the GetKeyState() function:
http://msdn.microsoft.com/en-us/library/ms646301(VS.85).aspx
with the VK_CAPITAL key code. Rest of the virtual key codes are here:
http://technet.microsoft.com/en-us/subscriptions/index/dd375731(v=vs.85).aspx