随笔分类 - 技术文档
摘要:c# 如何获取键盘和鼠标处于空闲状态的时间 ,可以通过windows api 函数GetLastInputInfo 或者 全局钩子HOOK来实现。下面就针对GetLastInputInfo 写了个DEMO,判断鼠标键盘空闲时间超过15分站则自动弹出视频播放窗口播放视频。新建windows 应用程序项目,代码如下:01.using System; 02.using System.Collections.Generic; 03.using System.Windows.Forms; 04.using System.Runtime.InteropServices; 05.namespace APPD
阅读全文

浙公网安备 33010602011771号