diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-06-04 13:45:31 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-06-04 13:45:31 +0800 |
| commit | 635c736432170b42cd8325f52481508fb557c0ac (patch) | |
| tree | 8f51f82ceeb3b83be12d9b5efaa5b77a2d1f4ae8 /autoclicker-right.py | |
| parent | 61b5d7f614520cbc1bf9bae6994890eddffce09d (diff) | |
Fixes and finalized auto-update, idle, etc's format
Diffstat (limited to 'autoclicker-right.py')
| -rwxr-xr-x | autoclicker-right.py | 19 |
1 files changed, 19 insertions, 0 deletions
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") |
