How do I detect application idle time?

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
 
R

rowe_newsgroups

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
 
I

IdleBrain

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.
 
H

Herfried K. Wagner [MVP]

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.
 

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


Top