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!!!
Printable View
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!!!
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
it worked :)
I dunno what is wrong with MS? the code you gave me works just fine, but as soon as I press ctrl+alt+del, I can do anything! it's cuz I have winNT I guess. How can I possibly disable that one also:confused: :confused: :confused:
Next time I guess I have to ask MS, hehe