Results 1 to 10 of 10

Thread: How do I disable the mouse and the keyboard????

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Caracas, Miranda, Venezuela
    Posts
    69
    Please help me, URGENT !!!!!!!!
    How do I disable the mouse and the keyboard????
    Exists any API?
    How use it?
    Please help me ASAP
    Thanks

  2. #2
    Guest
    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Caracas, Miranda, Venezuela
    Posts
    69

    Angry

    I mean, disable the keyboard and the mouse.
    The PC doesn´t receive any signal from Keyboard or Mouse.
    Please!!!!

  4. #4
    Guest
    Both will lock the KeyBoard and the Mouse. They Keyboard one will simulate a lock because the key will always be reset to 0.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Caracas, Miranda, Venezuela
    Posts
    69
    KeyASCII=0 sends a null chart, and it´s invisible

  6. #6
    Guest
    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.

  7. #7
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    India
    Posts
    298
    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.


  8. #8
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    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

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Feb 1999
    Location
    Caracas, Miranda, Venezuela
    Posts
    69
    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!!!!

  10. #10
    Addicted Member
    Join Date
    May 2000
    Posts
    247
    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
    Mako Shark
    Great White

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width