Mouse move event (all not just application form)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want my application to stop a certain action when it hasn't felt a mouse move for over 10 minutes
I understand I could do this by using the mousemove event of the form of my application
But if my application doesn't have the focus it wont fire the event if the mouse is moved right
So is there any way of finding out if the mouse is moving in the windows OS rather then just the application

jax
 
Hi Jax,

Yes, this is generally possible with system level hooks. But since they are
fully unmanaged, I am not sure you can effectively use them from managed
code. I think you should post a question about using hooks in managed code
to the microsoft.public.dotnet.framework.interop newsgroup.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Jax said:
I want my application to stop a certain action when it hasn't felt a mouse move for over 10 minutes.
I understand I could do this by using the mousemove event of the form of my application.
But if my application doesn't have the focus it wont fire the event if the mouse is moved right?
So is there any way of finding out if the mouse is moving in the windows
OS rather then just the application?
 
Back
Top