检测用户存在 [英] Detecting user presence

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

问题描述

我想做的是检测用户是否正在积极使用运行 Windows(2000 或更高版本)的计算机.最好,我希望在不使用屏幕保护程序的情况下执行此操作.

What I would like to do is detect if a user is actively using a computer running Windows (2000 or later). Preferably, I would like to do this without resorting to using screensavers.

背景:我们有一个位于寻线组中的客户服务部门,可以可用"或不可用".如果他们有空",呼叫将被路由到他们的电话,而不是坐在队列中.当电话在分机上振铃时,入站呼叫者会听到振铃"声而不是保持音乐.不幸的是,我们也有代表在去吃午饭或离开一天时忘记将自己从可用"中删除.

Background: We have a customer service department that sits in a hunt group and can be "Available" or not. If they are "Available" calls will be routed to their phone rather than sit in the queue. While the phone is ringing at an extension, the inbound caller hears the "ringing" sound rather than hold music. Unfortunately, we also have reps that forget to take themselves out of "Available" when they go to lunch or leave for the day.

最终结果可能会使用 .NET 编写

The end result would likely be written using .NET

有什么想法吗?

推荐答案

API GetLastInputInfo() 应该用于此.

The API GetLastInputInfo() should be used for this.

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

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