Results 1 to 4 of 4

Thread: Please Help!!! -> Keyboard

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Unhappy Please Help!!! -> Keyboard

    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!!!

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

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    thanks alot!

    it worked

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    doesn't work !

    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
    Next time I guess I have to ask MS, hehe

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