Skip to content

读取devices这种方式也是线程阻塞的吗?有考虑过使用pynput这种方式吗 #1

Description

@TimmyWangDouDou

你好
看了你的实现方式,实时监听devices文件流。pynput库也提供了监听鼠标键盘的方法,不知道pynput的视线方式是否跟你的相同。

我最近在做一款centos系统下使用python记录当前用户键盘和鼠标点击次数的工具,我希望这个工具能在后台运行,但是目前使用pynput和pyxhook在交互界面运行脚本都可以捕获并记录下来,一旦配置到自启动脚本里运行,就没有数据了。想请教一下,有没有什么好的办法

感谢。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions