Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pynput.mouse import Controller
- from pynput import mouse
- import time
- import random
- mouse = Controller()
- def on_click(x, y, button, pressed):
- btn = button.name
- if btn == 'left':
- if pressed:
- mouse.click(Button.left)
- time.sleep(random.uniform(0.01,0.05))
- mouse.click(Button.left)
- time.sleep(random.uniform(0.055,0.095))
- with mouse.Listener(
- on_click=on_click
- ) as listener:
- listener.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement