473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to find the system idle time

chandru8
145 100+
hi to all i need to find the system idle time and if the user doesnot use the system for more the a minute then i should lock the system

is it possible
can any one help in this.
thanks
Apr 10 '08 #1
5 2421
debasisdas
8,127 Expert 4TB
1.run a timer
2.increment a counter variable in timer
3.handle the keystrokes and the mouse events.
4.every time any event occurs reset the counter.
5.once counter reaches a particular value call the system lock sub routine.
Apr 10 '08 #2
Killer42
8,435 Expert 8TB
hi to all i need to find the system idle time and if the user doesnot use the system for more the a minute then i should lock the system

is it possible
Sure - use a screensaver. This functionality is already built into Windows.
Apr 11 '08 #3
chandru8
145 100+
is there any specific methods to handle mouse events
Apr 11 '08 #4
debasisdas
8,127 Expert 4TB
is there any specific methods to handle mouse events
You need to handle all the mouse related events.
Apr 11 '08 #5
chandru8
145 100+
Thanks For Your Reply Can You Give Any Example
Apr 11 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Frank Rizzo | last post by:
I want to log the user out when there has been a period of inactivity in the application. The key here is inactivity of the application, not the system. I know that you can retrieve the...
5
by: Kevin Buchan | last post by:
How can I tell if the system is 'idle', or the screen saver is running, or the machine is locked? I am writing an application that could really benefit from knowing this information. During...
6
by: TyBreaker | last post by:
I am using a performance counter to record the "Elapsed (CPU) time" of the "Idle" process. I record the elapsed time, wait 1 second and then record the new elapsed time. The result I get is: ...
5
by: sam | last post by:
hi all, i continue to footle around on my spanking new ultra 20 (1.8GHz / Opteron Model 144), gradually trying to get to grips with python and unix both. the slow print time in IDLE had...
3
by: writser | last post by:
hey all, For my study I'm writing a simple threaded webcrawler and I am trying to do this in python. But somehow, using threads causes IDLE to crash on Windows XP (with the latest python...
1
by: amitmk78 | last post by:
I want to track the system Idle time the moment any user locks the system by hitting CTRL+ALT+DEL . The moment the user locks the system, a small window within the system should display the timer...
6
by: Andreas Tawn | last post by:
I'm trying to integrate the timeout function from here http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473878 into a long running automation script and the following code causes IDLE after...
3
by: sreeraj1984 | last post by:
hi frnds, How we ca detect the system idle time . Actually i want to Check whether thesystem is inactive(ie, the mouse and keyboard are not active) or not.... ...
4
by: Sanjeev | last post by:
Dear Gurus, I have below table with data No.| Agent Start_Time End_Time ========================================== 1 | 194 2008-05-30 10:19:00 2008-05-30 10:23:06.000 2 ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.