Home All Groups Group Topic Archive Search About

How to lock just the keyboard system wide

Author
25 Mar 2006 4:05 AM
Alejandro Carrascal
Hello,

While I'm browsing the web my 9 mth old baby likes to hit the keyboard so I
want to write a little app to lock the keyboard. This way she can keep
playing with the keyboard without disturbing the PC. I plan to have an icon
on the tray that I can click to enable or disable the keyboard.
I tried using "KeyPreview" property and KeyPress event on a form to trap
keyboard entries but this does not provide a system wide solution.
Is there an API to lock the keyboard system wide but not the mouse?


Thank you,

Alejandro
VB 6.

Author
25 Mar 2006 11:36 PM
Juergen Thuemmler
> Is there an API to lock the keyboard system wide but not the mouse?

May be this helps:
http://www.mentalis.org/vbexamples/list.php?category=MISC, DSKEYBRD

Juergen.
Author
26 Mar 2006 5:26 PM
Alejandro Carrascal
Thank you Juergen, I think windows "Hooks" is the way to go.


Show quoteHide quote
"Juergen Thuemmler" <t***@removethisgmx.de> wrote in message
news:%2378o3TGUGHA.196@TK2MSFTNGP10.phx.gbl...
>> Is there an API to lock the keyboard system wide but not the mouse?
>
> May be this helps:
> http://www.mentalis.org/vbexamples/list.php?category=MISC, DSKEYBRD
>
> Juergen.
>