by Randy Houck (6 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 6th October 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)
How to disable the keyboard and they mouse for ten seconds
API Declarations
Private Declare Sub Sleep lib "kernel32" (ByVal dwmilliseconds as long)
DoEvents
'block the mouse and keyboard input
BlockInput True
Sleep 10000
'unblock the mouse and keyboard input
BlockInput False
End Sub