Detecting if the computer is idle

Giganews Newsgroups
Subject: Detecting if the computer is idle
Posted by:  Lars Sondergaard (
Date: 6 Sep 2006


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.


Lars Sondergaard