Monitor USB optical mouse activity for movement and call a program on Windows

Posted by CheeseConQueso on Stack Overflow See other posts from Stack Overflow or by CheeseConQueso
Published on 2010-04-01T18:49:51Z Indexed on 2010/04/01 18:53 UTC
Read the original article Hit count: 314

Filed under:
|
|
|
|

I'm essentially looking to monitor a USB port input for whatever happens when the optical mouse detects its own movement and turns itself on. These mice usually have a dim red light when in "standby" mode and then the red light becomes brighter once you start moving it around.

I want to use Visual Basic or something else native to the Windows environment to open an exe file or play a wav sound or call a bat file when the mouse "wakes up".

Any suggestions or pushes in the right direction are appreciated.

© Stack Overflow or respective owner

Related posts about usb

Related posts about mouse