Link to home
Create AccountLog in
Avatar of ssdjgru1
ssdjgru1

asked on

Mouse movement across any control

I am trying to make an application that logs out if the user is inactive  (mouse hadn't moved) for certain time. Therefore I need to catch any mouse movement that occours over my program. The problem is that I would not like to make "onMouseMove" event for each and every control to reset the Time Out Timer. Is there a way to monitor the mouse for whole focused application?
(PS: Sorry for stingy points, but I put 500 points on another question, that I resolved myself and now waiting for refound - I will raise the award the moment I get back my points!)
ASKER CERTIFIED SOLUTION
Avatar of Joni Kettunen
Joni Kettunen
Flag of Finland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of ssdjgru1
ssdjgru1

ASKER

Thank you for your anwser!

If you are satisfied with 32 points, I am accepting your anwser right now ;)