how to check wether a user is idle

  • Thread starter Thread starter HamuNaptra
  • Start date Start date
H

HamuNaptra

Hi,

I'm creating an app. in C# that shows a popup, but it only should if the user is
really
working on the computer.
It shouldn't popup if e.g. the screensaver is running.
I the user is working again, it then should popup.

But how do I check the amount of user idle time?
 
I found an api call to GetAsyncKeyState() which maybe does what I need,

I've never worked with api calls in c#.
Could somebody write some code using GetAsyncKeyState()?
 
Back
Top