Results 1 to 2 of 2

Thread: How to detect mouse using VB6

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Malaysia
    Posts
    3

    Question

    I'm having difficulty in detecting if the mouse/keyboard
    are pulled out from the CPU. I want to prompt a message
    if someone pulled out any one of the devices from the CPU.
    I tried few API calls but they are only checking if the mouse is installed or not and not checking if the mouse itself is removed from the CPU.

    Please help.

    Thanx guys.



  2. #2
    Lively Member
    Join Date
    Apr 2000
    Location
    Hell
    Posts
    89
    Erm, I'm sorry, but that's not possible. If there IS a method for detecting the absence of a mouse, it must be done through a low-level device driver that can directly access the hardware. In Windows 95, device drivers are 16-bit linear executables, and in windows NT, they are 32-bit portable executables with certain exported functions. Visual Basic is incapable of producing either.
    - Steve

    Real programmers use COPY CON PROGRAM.EXE

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