RSS Forums RSS
Please support our C# advertiser: Programming Forums
Views: 1998 | Replies: 3
Reply
Join Date: Jul 2006
Posts: 41
Reputation: jigoro is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
jigoro jigoro is offline Offline
Light Poster

Help help me to know the idle time

  #1  
Apr 29th, 2007
is there a way for me to know if a computer is idle for a certain time? using c#. thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2004
Location: Tracy
Posts: 744
Reputation: Killer_Typo will become famous soon enough Killer_Typo will become famous soon enough 
Rep Power: 7
Solved Threads: 32
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster

Re: help me to know the idle time

  #2  
Apr 30th, 2007
im not sure if a machine will ever be 100% idle but you can watch process so you could easily watch the System Idle Process which gives the % of system that is idle at the current moment in time.

i cant quite remember the namespace right now but one of them gives you access to watching processes.
!!!!! WARNING YOUR COMPUTER MAY BE INFECTED WITH SPYWARE!!!! PAY AN OVER PRICED AMMOUNT TO HAVE SOMTHING FIXED WE PLACED THERE IN THE FIRST PLACE!!!!!!!!!

sound familiar, know how to block yourself and keep yourself clean.
_____________________
http://www.lavasoftusa.com/ -->adaware
http://www.safer-networking.org/en/index.html -->spybot S&D
http://www.javacoolsoftware.com/spywareblaster.html -->spywareblaster
http://www.javacoolsoftware.com/spywareguard.html -->spywareguard
_____________________
and dont forget to spread the reputation to those that deserve!
Reply With Quote  
Join Date: Jul 2006
Posts: 41
Reputation: jigoro is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
jigoro jigoro is offline Offline
Light Poster

Re: help me to know the idle time

  #3  
May 1st, 2007
i decided that my definition of idle is no activity from keyboard and mouse. is there a way to monitor if there is no activity coming from those input devices?
Reply With Quote  
Join Date: Apr 2004
Location: Tracy
Posts: 744
Reputation: Killer_Typo will become famous soon enough Killer_Typo will become famous soon enough 
Rep Power: 7
Solved Threads: 32
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster

Re: help me to know the idle time

  #4  
May 1st, 2007
Originally Posted by jigoro View Post
i decided that my definition of idle is no activity from keyboard and mouse. is there a way to monitor if there is no activity coming from those input devices?


you may be able to monitor it through the use of a mouse/keyboard hook.

i have no personal experience doing this but that doesnt mean it cannot be done!

look into hooking the keyboard/mouse and see what you can / can't find.
!!!!! WARNING YOUR COMPUTER MAY BE INFECTED WITH SPYWARE!!!! PAY AN OVER PRICED AMMOUNT TO HAVE SOMTHING FIXED WE PLACED THERE IN THE FIRST PLACE!!!!!!!!!

sound familiar, know how to block yourself and keep yourself clean.
_____________________
http://www.lavasoftusa.com/ -->adaware
http://www.safer-networking.org/en/index.html -->spybot S&D
http://www.javacoolsoftware.com/spywareblaster.html -->spywareblaster
http://www.javacoolsoftware.com/spywareguard.html -->spywareguard
_____________________
and dont forget to spread the reputation to those that deserve!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:21 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC