系统空闲检测 [英] System Idle Detection

查看:25
本文介绍了系统空闲检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检测系统是否空闲,即:用户没有使用系统.我希望它像 Windows Live Messenger 一样,当我离开计算机 3 分钟后它会自动更改为离开,我想在代码中设置这个时间.

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.

我正在使用 Visual Studio 2008 和 2010 在 C# 环境下处理 WPF,所以如果这里有一种方法可以同时处理这两种情况,那就太好了.

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.

推荐答案

有一篇 文章CodeProject 应该可以帮助您入门.

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

这篇关于系统空闲检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆