Can I use Python to capture keyboard and mouse events in OSX?

前端 未结 5 1743
既然无缘
既然无缘 2021-02-08 04:53

I\'m trying to write a simple macro recorder in Python for OSX - something which can capture mouse and key events as the script runs in the background and replay them. I can use

5条回答
  •  轮回少年
    2021-02-08 05:19

    I know that you can use curses for capturing key input, but im not sure about mouse input. Not only that but if im not mistaken it is included in the std library with 2.7.2.

提交回复
热议问题