Sign in to follow this  
bluefox25

A keyboard locking program

Recommended Posts

bluefox25    100
Hi I want to create a small program that would alow the user to press a hotkey that wuld temporarily disable the keyboard while they are away and enable it by hot key again. I have a 14 month old who has discovered the joy of smashing keys and sometimes he has done bd things to the pc's in the house. Any idea of how I would get that started? Now that I think about it it would be pretty hard to enable the keyboard via the keyboard if its already disabled!! Any thoughts?

Share this post


Link to post
Share on other sites
marius1930    119
You could use hooks to eat all the wm_keydown/wm_keyup/wm_char messages..

Then trigger an unlock on your key.

Though it does seem a lot easier to just do <windows>+L

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this