Article View: borland.public.cppbuilder.nativeapi
Article #17739Re: Detecting keyboard "Caps Lock" Led status
From: Remy Lebeau (TeamB)
Date: Tue, 04 Mar 2003 09:26
Date: Tue, 04 Mar 2003 09:26
21 lines
1744 bytes
1744 bytes
The key status *is* the Led status when the Caps lock key is concerned:
GetKeyState
Return Values
If the function succeeds, the return value specifies the status of
the given virtual key. If the high-order bit is 1, the key is down;
otherwise, it is up. If the low-order bit is 1, the key is toggled. A key,
such as the CAPS LOCK key, is toggled if it is turned on. The key is off and
untoggled if the low-order bit is 0. A toggle key's indicator light (if any)
on the keyboard will be on when the key is toggled, and off when the key is
untoggled.
Gambit
"Enrico B." <eangelo@libero.it> wrote in message
news:3e645f60$1@newsgroups.borland.com...
> I am looking for a piece of code to be used to detect
> the keyboard "Caps Lock" Led status (NOT the key status).
Technical Details
Message-ID:
<3e646f98$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e645f60$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,da1a8ccfe615e7fe X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-04 13:24:31 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e645f60$1@newsgroups.borland.com> Subject: Re: Detecting keyboard "Caps Lock" Led status Date: Tue, 4 Mar 2003 01:26:23 -0800 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e646f98$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1046769560 207.175.226.26 (4 Mar 2003 01:19:20 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail