From 635c736432170b42cd8325f52481508fb557c0ac Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 4 Jun 2023 13:45:31 +0800 Subject: Fixes and finalized auto-update, idle, etc's format --- autoclicker-right.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 autoclicker-right.py (limited to 'autoclicker-right.py') diff --git a/autoclicker-right.py b/autoclicker-right.py new file mode 100755 index 0000000..94dc699 --- /dev/null +++ b/autoclicker-right.py @@ -0,0 +1,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.right, 1) + sleep(delay) + else: + while True: + mouse.click(Button.right, 1) + sleep(round(uniform(0.035, 0.055), 3)) +except KeyboardInterrupt: + print("\nKeyboardInterrupt, exiting") -- cgit v1.2.3