Board index » cppbuilder » CapsLock

CapsLock


2007-11-03 02:31:31 AM
cppbuilder20
Is it possible to check if the CapsLock state without pressing a key?
Thank you in advance.
 
 

Re:CapsLock

"riweber" < XXXX@XXXXX.COM >wrote in message
Quote
Is it possible to check if the CapsLock state without pressing a key?
Look at GetKeyState() and GetAsyncKeyState() in the Win32 API.
Gambit
 

Re:CapsLock

Hi riweber
In article <472b6d02$ XXXX@XXXXX.COM >
XXXX@XXXXX.COM
riweber says:
Quote
Is it possible to check if the CapsLock state without pressing a key?
Thank you in advance.
API function:
SHORT GetKeyState(
int nVirtKey // virtual-key code
);
Kind regards
Asger
 

{smallsort}

Re:CapsLock

Thank you
Asger Jørgensen schrieb:
Quote
Hi riweber

In article <472b6d02$ XXXX@XXXXX.COM >
XXXX@XXXXX.COM
riweber says:
>Is it possible to check if the CapsLock state without pressing a key?
>Thank you in advance.

API function:

SHORT GetKeyState(

int nVirtKey // virtual-key code
);

Kind regards
Asger