gpt4 book ai didi

python - 如何知道是否按下了鼠标左键

转载 作者:太空宇宙 更新时间:2023-11-03 12:45:19 26 4
gpt4 key购买 nike

我正在使用 PyAutoGUI 库。我如何知道是否按下了鼠标左键?

这是我想要做的:

if(leftmousebuttonpressed):
print("left")
else:
print("nothing")

最佳答案

(我是 PyAutoGUI 的作者。)我可以确认目前 PyAutoGUI 无法读取/记录点击或击键。这些功能在路线图上,但目前没有专门针对它们的任何资源或时间表。

关于python - 如何知道是否按下了鼠标左键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39235454/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com