如何使用Python“鼠标”记录鼠标的绝对位置图书馆
我想使用mouse
库来记录鼠标事件,但它的位置是相对的。如何设置记录仪记录绝对位置?
import mouse
events = mouse.record() # record until clicking right button
mouse.play(events[:-1]) # skip right button clicked
I want to use mouse
library to record mouse events, but its position is relative. How can I set the recorder to record the absolute position?
import mouse
events = mouse.record() # record until clicking right button
mouse.play(events[:-1]) # skip right button clicked
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是解决您的问题的一种方法:
This is one way to solve your problem :