• Advertisement
Sign in to follow this  

A keyboard locking program

This topic is 3623 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement