Thanks, I have found a way to identify if there is a USB mouse plugged in using a simple VBscript with Microsoft's WMI. Running a query of the pointing devices gives me the information if a USB mouse is plugged in or not. I am pretty sure if I run a service in the background it will work, but I am thinking that it will be hard on resources. I would really like to be able to trigger my script on the event of any USB device being plugged in or unplugged. Are there any WMI guru's out there?
G
groovy dude
@groovy dude
Posts
-
usb detection -
usb detectiondoes anybody know if there is a way to capture the Windows XP event of a USB mouse being plugged in or unplugged? I currently support a large school division, and we are going to be buying a large amount of computers with USB mice(Currently mice go missing on a regular basis). I want to be able to write some code that will log to a text file the time that that the usb mouse gets unplugged, does anybody know if this information can be pulled from XP( I am assumin ghtere is a way, as it makes a sound when I unplug the mouse), and using what coding language. Thanks Tech Coordinator