|
-
Jun 27th, 2000, 04:02 AM
#1
Thread Starter
Lively Member
Please help me, URGENT !!!!!!!!
How do I disable the mouse and the keyboard????
Exists any API?
How use it?
Please help me ASAP
Thanks
-
Jun 27th, 2000, 04:12 AM
#2
To disable the Keyboard. Set the form's KeyPreview property to True and put the following code in the Fomr's KeyPress event.
Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
' Resets the Key so no key is pressed
KeyAscii = 0
End Sub
To disable the Mouse, follow this link. http://www.planet-source-code.com/vb...txtCodeId=3208
-
Jun 27th, 2000, 04:31 AM
#3
Thread Starter
Lively Member
I mean, disable the keyboard and the mouse.
The PC doesn´t receive any signal from Keyboard or Mouse.
Please!!!!
-
Jun 27th, 2000, 04:46 AM
#4
Both will lock the KeyBoard and the Mouse. They Keyboard one will simulate a lock because the key will always be reset to 0.
-
Jun 27th, 2000, 04:54 AM
#5
Thread Starter
Lively Member
KeyASCII=0 sends a null chart, and it´s invisible
-
Jun 27th, 2000, 05:00 AM
#6
Do you want to completely lock the system, as if someone checked the Disable box of the Mouse or KeyBoard in the Control Panal?
See if this is what you want. http://www.planet-source-code.com/vb...xtCodeId=6185.
You can manipulate the code as desired so the passwording is out and only the freezing is left.
-
Jun 27th, 2000, 11:13 AM
#7
Hyperactive Member
Hi,
u can use the clipcursor and showcursor APIs to disable the mouse. clipcursor restricts the mouse movement to a particular area and showcursor can hide the mouse cursor.
-
Jun 27th, 2000, 11:51 AM
#8
Fanatic Member
Originally posted by Rafael
I mean, disable the keyboard and the mouse.
The PC doesn´t receive any signal from Keyboard or Mouse.
Please!!!!
I agree with you Rammy, but I think he doesn't want one single signal to be sent to the mouse. If those API are used, will it send any signals?
Chemically Formulated As:
Dr. Nitro
-
Jun 28th, 2000, 01:20 AM
#9
Thread Starter
Lively Member
Ok, my friend, it works to disable, but I was trying
Shell "rundll32 mouse,enable"
to enable the mouse again, and it didn't work.
How do I do???
Thanks for your help!!!!
-
Jun 28th, 2000, 01:47 AM
#10
Addicted Member
Megatron, I am using NT. I think the codes for this site that you recommended does not work for NT.
To disable the Mouse, follow this link. http://www.planet-source-code.com/vb...txtCodeId=3208
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
|