Lock Keyb and Mouse

hi,
I need a procedure which locks the keyboard and mouse.
the second procedure must give it free then.

Regards
ItsMe
ItsMeAsked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
Write a windows hook which traps WH_MOUSE and WH_KEYBOARD messages and ignores them. You will need to place them in a DLL also with a flag you can set via a function to turn on the ignoring of the messages or not.

Cheers,

Raymond.
0
 
ItsMeAuthor Commented:
How do I write such  program ? I know nothing about writing dll's and hooks !
Regards
ItsMe
0
 
rwilson032697Commented:
If you do a serach on Delphi Super Page (http://sunsite.icm.edu.pl/delphi/) with "hook" as the key you should find some samples.

Also, start reading the Delphi help about DLLs and the helkp for SetWindowsHook in the Win32 help (type SetWindowsHook in an edit window, put the cursor in it and press F1)
Cheers,

Raymond.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.