Results 1 to 2 of 2

Thread: how to disable the mouse and the keyboard

  1. #1

    Thread Starter
    Member
    Join Date
    May 2007
    Posts
    60

    how to disable the mouse and the keyboard

    Hi
    I'm working into a project , that can allow me to automate some tasks , but i don't want the user to have access to the keyboard and the mouse during this process , i have found some way to desable the mouse and the keyboard thank's to the rundll32.exe , but it doesn't works into windows xp .
    Can you help me .
    thank you.

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: how to disable the mouse and the keyboard

    In VB6 I've used this before,

    Declare Function BlockInput Lib "user32" (ByVal fBlock As Long) As Long

    ' lock
    BlockInput True
    ' unlock
    BlockInput False


    MSDN:BlockInput Function

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