GetLastInputInfo等价于Linux,用于检测最后的输入时间
16lz
2021-01-22
Is there a GetLastInputInfo() equivalent that can be used in Linux?
是否有一个GetLastInputInfo()等价物可以在Linux中使用?
The intention is to detect the last input time (keyboard or mouse) of the user. Am using python to script the program.
目的是检测用户最后一次输入时间(键盘或鼠标)。正在使用python编写程序脚本。
1 个解决方案
#1
4
XScreenSaverQueryInfo
XScreenSaverQueryInfo
The idle field specifies the number of milliseconds since the last input was received from the user on any of the input devices. The event-mask field specifies which, if any, screen saver events this client has requested using ScreenSaverSelectInput.
空闲字段指定从用户在任何输入设备上接收最后一个输入后的毫秒数。事件遮罩字段指定使用ScreenSaverSelectInput请求的屏幕保护程序事件(如果有的话)。
更多相关文章
- Oracle表按字段和|分格符导出文件
- 是否遇到过MySQL workbench text字段不能直接放入json格式内容
- 求sql【复制同一表记录,但有两个字段需要修改--详情 Btn_oncliek
- 查询表中的某一行,表中没有行号相关的属性字段,SQL语句怎么写啊?50
- SQL根据某个字段分组查询:
- mysql中如何对text字段值进行追加更新
- 怎么用SQL语句实现表中的一个字段加1啊??
- MySQL实现表之间的字段更新
- sql2005指定字段插入空格。