blob: d1c2591f7d54933f6eea6f40688e4fc8726d8b84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from time import sleep
from random import uniform
from pynput.mouse import Controller, Button
from sys import argv
mouse = Controller()
try:
if len(argv) > 1:
delay = int(argv[1]) // 1000
while True:
mouse.click(Button.left, 1)
sleep(delay)
else:
while True:
mouse.click(Button.left, 1)
sleep(round(uniform(0.035, 0.055), 3))
except KeyboardInterrupt:
print("\nKeyboardInterrupt, exiting")
|