Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jun : CapLocks, NumLocks, etc

www.cryer.info
Managed Newsgroup Archive

CapLocks, NumLocks, etc

Subject:CapLocks, NumLocks, etc
Posted by:"Roberto Colpani" (roberto.colpa..@vetrariafratellicolpani.it)
Date:Wed, 7 Jun 2006 18:53:24

I need to intercept when the CapLock key and the NumLock key  status change
also if it is the focus is on another program. What I'm going to do is a
little program that show me on the screen the state of this two key. (I use
a cordless Logitech keybord and always I don't know the state of this key).
It's possible to do this? I see the GetKeyState function to retrive the
state of the keys, but my problem is to intercept when another program is
running and the user press the capslock key how can I intercept this press.
Thanks.

Replies:

www.cryer.info
Managed Newsgroup Archive