how to check user idle time

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

HamuNaptra

Hi,

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

But how do I check the amount of user idle time?
 
hi
One way to do it by detecting the mouse movement, you can place that on a
timer that does these checks periodically
Here is a sample program that deals with mouse movement (with the
source code) it may help
http://www.stewshack.com/csharp/mouse.asp
However may need to use some windows API functions if you want to do that
for all the screen as well as keyboard stokes

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top