该程序检测到自己的点击,以便停止
尝试制作一个仅在按下左键鼠标按钮时单击的自动化器。不幸的是,该程序本身检测到该按钮已发布,因此我停止单击。是否有任何选项可以检查程序或鼠标是否单击?还是使它起作用?我对将按钮更改为另一个不感兴趣。仅左鼠标按钮。
import mouse
import time
while True:
time.sleep(0.01)
while mouse.is_pressed("left"):
mouse.click('left')
Trying to make an autoclicker that clicks only when the left mouse button is pressed. Unfortunately the program itself detects that the button has been released so I stop clicking. Is there any option to check if program or mouse is clicking? Or to make it work? I am not interested in changing button to another one. Only left mouse button.
import mouse
import time
while True:
time.sleep(0.01)
while mouse.is_pressed("left"):
mouse.click('left')
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了解决方案
i found the solution