我正在编写一个自动点击器,并希望将延迟设置为 CPS(每秒点击次数),那么,我将如何计算 python 中 CPS 值的延迟?
我试过谷歌搜索,但只找到 CPS 测试人员,没有实际代码
这是一段代码:
def clickerstart(): #this functions activates when you press the "start" button in the autocklicker menu ¦
if clickerlmb == 1:
mouse.press(Button.left)
time.sleep(delay) # "delay" is the time to sleep, found from the CPS
mouse.release(Button.left)