VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



How to disable the keyboard and they mouse for ten seconds

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)

Rate How to disable the keyboard and they mouse for ten seconds



DoEvents 
  'block the mouse and keyboard input
  BlockInput True
  Sleep 10000
  'unblock the mouse and keyboard input
  BlockInput False
End Sub


Download this snippet    Add to My Saved Code

How to disable the keyboard and they mouse for ten seconds Comments

No comments have been posted about How to disable the keyboard and they mouse for ten seconds. Why not be the first to post a comment about How to disable the keyboard and they mouse for ten seconds.

Post your comment

Subject:
Message:
0/1000 characters