Click here to Skip to main content
15,908,841 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I want to get the System Idle Time in c#.net? After system goes to Idle mode without use mouse or keys then I want to get the IdleDuration, LastInputTime and CurrentInputTime both of these fields are insert every 5 mins in Sqlserver table.

Please help me,
Thanks in Advance
Posted
Updated 8-Jan-15 0:39am
v2
Comments
Arjsrya 8-Jan-15 6:18am    
You have not mention what type of application it is.
Is it windows or web application?

Please refer this article for further reference.
http://www.codeproject.com/Articles/13756/Detecting-Application-Idleness
24983 8-Jan-15 6:31am    
Sorry this is windows application

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900