Added: Aug 19, 2002
Snippet uploaded by: snippet
Written By: Matthew Gates
Demo: Sorry, no demo
Two ways I know of to disable keyboard
Highlight all by clicking in box
'1 - Rundll32:
Shell "rundll32 keyboard,disable"
'2 - BlockInput API function (only problem with this is 'you disable both mouse and keyboard and you have to 'basically set a timer or something, or else you can't re-'enable them, but in the code below, there is an example 'of setting a time to disable and re-enable them).
Private Declare Function BlockInput Lib "user32" _
(ByVal fBlock As Long) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal _
dwMilliseconds As Long)
Private Sub Command1_Click()
'block the mouse and keyboard input
'wait 10 seconds before unblocking it
'unblock the mouse and keyboard input
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.