DunaU
United States
 
 
No information given.
Currently Offline
Items Up For Trade
183
Items Owned
2,107
Trades Made
10,667
Market Transactions
# importing time and threading
import time
import threading
from pynput.mouse import Button, Controller

# pynput.keyboard is used to watch events of
# keyboard for start and stop of auto-clicker
from pynput.keyboard import Listener, KeyCode


# four variables are created to
# control the auto-clicker
delay = 0.001
button = Button.right
start_stop_key = KeyCode(char='a')
stop_key = KeyCode(char='b')

# threading.Thread is used
# to control clicks
class ClickMouse(threading.Thread):

# delay and button is passed in class
# to check execution of auto-clicker
def __init__(self, delay, button):
super(ClickMouse, self).__init__()
self.delay = delay
self.button = button
self.running = False
self.program_running = True

def start_clicking(self):
self.running = True

def stop_clicking(self):
self.running = False

def exit(self):
self.stop_clicking()
self.program_running = False

# method to check and run loop until
# it is true another loop will check
# if it is set to true or not,
# for mouse click it set to button
# and delay.
def run(self):
while self.program_running:
while self.running:
mouse.click(self.button)
time.sleep(self.delay)
time.sleep(0.1)


# instance of mouse controller is created
mouse = Controller()
click_thread = ClickMouse(delay, button)
click_thread.start()


# on_press method takes
# key as argument
def on_press(key):

# start_stop_key will stop clicking
# if running flag is set to true
if key == start_stop_key:
if click_thread.running:
click_thread.stop_clicking()
else:
click_thread.start_clicking()

# here exit method is called and when
# key is pressed it terminates auto clicker
elif key == stop_key:
click_thread.exit()
listener.stop()


with Listener(on_press=on_press) as listener:
listener.join()
Recent Activity
141 hrs on record
last played on Jun 9
397 hrs on record
last played on Jun 8
120 hrs on record
last played on Jun 8
munk` Jun 6 @ 3:33am 
-rep freak
Drahal Feb 18 @ 12:44pm 
+rep pretty good player <3
Dor Feb 18 @ 12:41pm 
+rep pretty good player <3
DiegoArmandoMercadona Nov 7, 2023 @ 8:21pm 
Such a BOT mate
tren May 26, 2023 @ 12:01am 
+rep skilled player
~_• Nov 2, 2022 @ 6:00am 
+rep