|
-
Sep 11th, 2001, 12:50 PM
#1
Please Help!!! -> Keyboard
I have to know how to disable ALL of the keyboard keys + disable the mouse. (Shell "Rundll ..." and the API that simulates the screensaver won't work) help!!!
-
Sep 12th, 2001, 09:34 AM
#2
For the calling thread (process only) you can use the blockinput api.
From allapi.net
Code:
Private Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Form_Activate()
'KPD-Team 2000
'URL: http://www.allapi.net/
'E-Mail: [email protected]
DoEvents
'block the mouse and keyboard input
BlockInput True
'wait 10 seconds before unblocking it
Sleep 10000
'unblock the mouse and keyboard input
BlockInput False
End Sub
-
Sep 12th, 2001, 04:54 PM
#3
thanks alot!
it worked
-
Sep 13th, 2001, 01:34 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|