How do I detect application idle time?

  • Thread starter Thread starter Peri
  • Start date Start date
P

Peri

Dear All,

Can you please help me out in detecting the application idle time.

I would like to lock the application if it is idle for more that 10 minutes.

FYI - I have already tried application.idle event.

Thanks and Regards,

Peri
 
Dear All,

Can you please help me out in detecting the application idle time.

I would like to lock the application if it is idle for more that 10 minutes.

FYI - I have already tried application.idle event.

Thanks and Regards,

Peri

How are you determining "idle" time?

Thanks,

Seth Rowe
 
What do you guys think about resetting a timer each time a key is
pressed or mouse is moved ( low priority thread) ?
On timer tick at 10 minutes just lock the application.

Thanks,
Naren.
 
Peri said:
Can you please help me out in detecting the application idle time.

I would like to lock the application if it is idle for more that 10
minutes.

FYI - I have already tried application.idle event.

What you can do easily is detect how long the complete system is idle (in
terms of user input):

<URL:http://dotnet.mvps.org/dotnet/code/misc/#UserIdle>

Combining the code above with a check that tests if your application is
still the active one could lead to a solution for your problem.
 
Back
Top