Coding Global Background
Coding Global

How do I make this simple clicker faster?

Archived a year ago
8 messages
0 members
Created a year ago
Updated a year ago
Open in Discord
M
Martin
Active!
import pyautogui
import keyboard
import threading

keyboard.wait('space')

click = True

def check_break():
    global click
    while True:
        keyboard.wait('s')
        click = not click

key_thread = threading.Thread(target=check_break)
key_thread.daemon = True #auto exit when program exits
key_thread.start()

while True:
    if click:
        pyautogui.leftClick()

Replies (8)