Results 1 to 8 of 8

Thread: Very Hard Mouse Question

  1. #1
    spidie_man_home
    Guest

    Question Very Hard Mouse Question

    here is a toughy....

    i'm looking for a snippit of code that can do this for me...
    i want my program to know when the mouse has been unpluged. that's it... and possibly when it has been pluged in again..

    any thoughts...i can't figure it out...

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    I have a class that I got from Planet Source Code, take a look at the MousePresent() function, I'm not sure if it's what you want because I haven't used the class my self

  3. #3
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    OUCH!

    I just checked Total VB Source book (code bank program), that class is from Total VB Source Book and for some reason someone has changed it and put it on Planet Source Code

  4. #4
    spidie_man_home
    Guest

    close

    nope that looks like it has mainly all the mouse window functions in it. what i am looking for is a program that looks at the mouse port i guess (ps2) and if there is no mouse there then it lets me know.

    any ideas?

  5. #5
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    what does the mousePresent function do then? just tells you if it is installed or not?

  6. #6
    spidie_man_home
    Guest

    installed

    ' Returns True if a mouse is installed.

    yup
    it returns a true if the mouse is installed.

  7. #7
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Here's the test program you asked (it's zip, I can send the exe if you cant open it right now)

  8. #8
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    wel, I tried it myself and it didnt work they way you wanted it to. I didnt test it this way, but it might work if the windows is started without a mouse
    there should be a trick or something to figure that out

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