How do I make this simple clicker faster?
Archived a year ago
M
Martin
Active!
```py
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()
```
