有没有办法在pynput中编辑最大CPS?

发布于 2025-02-04 15:44:15 字数 400 浏览 2 评论 0原文

因此,最近我一直在使用pynput,我注意到,无论延迟我设置了什么,因为带有pynput的最大CPS始终为10 cps。现在,在pyautogui中,您可以在点击之间编辑硬编码的暂停,但是我想知道这是否可以在pynput中。
例如:

import pynput
from pynput.mouse import Button as btn
from pynput.mouse import Controller
import time

mouse = Controller()
delay = 0
mouse.click(btn.left)
time.sleep(delay)

无论您将“延迟”值更改为什么,最大CPS始终为pynput,然后尝试“ pynput.pause = 0.01”不会改变输出。

So recently I've been using pynput and I have noticed that no matter the delay I set it as the maximum CPS with pynput is always 10 cps. Now in pyautogui you can edit the hard coded pause between clicks, but I was wondering if this is possible in pynput.
For example:

import pynput
from pynput.mouse import Button as btn
from pynput.mouse import Controller
import time

mouse = Controller()
delay = 0
mouse.click(btn.left)
time.sleep(delay)

No matter what you change the "delay" value to, the max CPS is always 10 with Pynput, and trying "pynput.PAUSE = 0.01" doesn't change the output.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文