By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,770 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

How do I detect application idle time?

P: n/a
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
Jul 26 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Jul 26, 5:01 am, "Peri" <P...@discussions.microsoft.comwrote:
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

Jul 26 '07 #2

P: n/a
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.

Jul 26 '07 #3

P: n/a
"Peri" <Pe**@discussions.microsoft.comschrieb
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,

http://msdn2.microsoft.com/en-us/library/ms646302.aspx

Call the function every n seconds. The time is related to all applications,
not only to your application.
Armin

Jul 26 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.