Detecting if the computer is idle

Giganews Newsgroups
Subject: Detecting if the computer is idle
Posted by:  Lars Sondergaard (sorry@nospam.dk)
Date: 6 Sep 2006

Hi

What is the easiest way to determine if the computer is idle. Any
pointers how to get the following info would be much apreciated:

1. The current CPU(s) utilization
2. The current network utilization
3. The current disk utilization
4. Is the user using the mouse/keyboard

I need to make an app that performs its tasks in the background without
getting in the way when the user works with other apps.

Thanks

--
Lars Sondergaard

Replies