summaryrefslogtreecommitdiff
path: root/autoclicker-right.py
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-06-04 13:45:31 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-06-04 13:45:31 +0800
commit635c736432170b42cd8325f52481508fb557c0ac (patch)
tree8f51f82ceeb3b83be12d9b5efaa5b77a2d1f4ae8 /autoclicker-right.py
parent61b5d7f614520cbc1bf9bae6994890eddffce09d (diff)
Fixes and finalized auto-update, idle, etc's format
Diffstat (limited to 'autoclicker-right.py')
-rwxr-xr-xautoclicker-right.py19
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")