________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?' Drive a Steam Roller
Thanks Johnwm!
That is pretty neat, except I copied and pasted the code to my form, and I added this bit:
Me.Print "Mouse present= " + Str$(GetSystemMetric_
s(SM_MOUSEPRESENT))
The mousepresent value doesnt change.
I am using a USB mouse. I start the code by pressing F5 when I have the mouse unplugged.
The only thing that changes is number of buttons. 3 if mouse plugged in, 2 if not.
Why do I want to do this?
I am throwing together a home arcade machine (80's style).
I would like to run the game "front end" on bootup, unless the mouse is plugged in, then it boots up on windows, for servicing.
Thanks for your help, it would be nice if this could be done from a dos batch file, but i dont know how to do it. (I will be using win98 on the machine.)
I thought about writing a small vb6 program that would run on boot-up and do the mouse check.
Any arcade enthusiasts out there?
Thanks BobRodes!
I found something called DEV_BROADCAST_HDR.
I think this might work, but Im not sure how to use it.
Im not sure if it is legal to paste the code examples here, but here is the link: (I found it in the link you posted).
I guess no one can help me?
This has got to be simple, Windows detects if the mouse is not hooked up on boot-up.
This method would be useful not just for my arcade machine, but for any program that must have the mouse.
Well, if I come across the answer I will post it here, just in case someone else might want to know.
In the meantime, feel free to offer any ideas.
Thanks.
--ken
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.