Results 1 to 4 of 4

Thread: Disabling Mouse and Keyboard from VB - Help!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    NC
    Posts
    2

    Question

    I would like to know if there is a way to disable the mouse and keyboard from within VB while a certain process runs, and then enable them again once complete. This must be system wide so the mouse and keyboard cannot bring focus to another application or anything.

    Any help with this would be greatly appreciated since I have no idea of how to do this (or if it is possible).

    Thanks in Advance

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmmm I'm sorry but I don't think that's possible in VB, because you need a system-wide hook, you can always fake it with some apicalls but not sure how to do that.

    So get yourself on C(++) and try to develop a DLL that does the job and reference it in VB.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Junior Member
    Join Date
    May 2000
    Location
    Alaska
    Posts
    21
    Megatron knows how to do it. I saw him post sometime a while back.
    Alaska

  4. #4
    Hyperactive Member
    Join Date
    Oct 2000
    Posts
    400
    Not sure if you can do this anymore, but back in the day you could open forms (or was it programs?) as system modal - sort of like a dialog box with attitude. No keyboard or mouse events would get processed outside of the form (program?) until it was closed.


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