Solved

Detect mouse cord cut

Posted on 2009-05-03
5
417 Views
Last Modified: 2013-12-09
Is it possible to detect the vandalising removal of a USB mouse, as for example when the mouse cord is cut.  I believe that this is impossible with a PS2 mouse, but thought that it may be possible with a USB driver.  
0
Comment
Question by:ozwombat
  • 3
5 Comments
 
LVL 46

Expert Comment

by:tbsgadi
Comment Utility
Not as far as I know.

Gary
0
 
LVL 10

Expert Comment

by:TCB1
Comment Utility
Hmm...Interesting question. I have an idea they may do what you want with either a PS/2 or USB mouse.

You could monitor mouse movement and if the mouse doesn't move for a while (Say 1 or 2 days if you know the computer should be used every day, but I'm guessing you want to know ASAP) then maybe the mouse cord has been cut. Then have the script to update a website or something to let you know.

Of course you could have false positives with this (i.e. computer asleep, especially if you check the mouse often). This is how you do it:

Download Autoit www.autoitscript.com
There is a function called mousegetpos() which returns the present position of the mouse. You could have it check the position of the mouse once a hour say, and if it doesn't move for a defined number of hours, you could assume it's been disconnected.

Anyway, it's an idea. I don't believe there is an easy solution to your question.
0
 

Author Comment

by:ozwombat
Comment Utility
Hi TCB1
Thanks for the thoughts. I should have pointed out that the purpose of the detection is to catch vandals in the act.  Detecting the mouse missing by lack of movement may however be useful for maintenance purposes, thank you.
0
 
LVL 10

Expert Comment

by:TCB1
Comment Utility
I have another idea about how to poll the device manager for changes. I'll let you know how it goes in the next few days.
0
 
LVL 10

Accepted Solution

by:
TCB1 earned 500 total points
Comment Utility
This link looks good. http://www.myitforum.com/articles/1/view.asp?id=5603

I would try to rig something up to test it out, but don't have a PC available at the moment. I'm on a mac.

This utility paired with a autoitscript or batch file could perhaps do what you want.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Good afternoon all, We are running a VM infrastructure on a clustered ESX environment with two DELL R710's.  One of our IT Application Support Engineers contacted me and asked if it was possible to extend the partition of a certain Windows 2003 S…
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now