tags:

views:

92

answers:

2

I want to detect if the system is idle, ie: user not using the system. I want it like the Windows Live Messenger it changes automatically to away when I leave the computer for a time like 3 minutes, I want to set this time within the code.

I`m working on the WPF under C# environment using both visual studio 2008 and 2010 so if here is a way that work on both that`ll be great.

+5  A: 

There's an article on CodeProject that should get you started.

Darin Dimitrov
A: 

This link appears to provide a WinForms component for the task also:

http://www.codeproject.com/KB/miscctrl/Application_Idle.aspx

Adam