0

I would like to know please when the user is not using my application.

I have been looking to this GetLastInputInfo but this manages the interaction with the OS and not only my application.

My application has many forms and I would like to avoid adding handlers to every form to check for MouseHover or PressKey events. At least it's very difficult.

Is there any other way please to achieve this ?

Thanks.

Community
  • 1
  • 1
Thomas Carlton
  • 5,344
  • 10
  • 63
  • 126
  • 1
    You could create a `BaseForm` which implements some events and just inherit from that form. This way you'd have your idle-handling in every form with implementing it just once. – germi Apr 14 '15 at 09:47
  • Basically you need `IMessageFilter` which is mentioned in the linked duplicate question. – Sriram Sakthivel Apr 14 '15 at 09:49

0 Answers0