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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top