Autoclicker

 avatar
DillFire55
python
18 days ago
288 B
0
Indexable
Never
from pynput.keyboard import Listener, Key
import mouse

def on_press(key):
    if key == Key.scroll_lock:
        mouse.press('left')
        mouse.release('left')
    if key == Key.esc:
        listener.stop()

with Listener(on_press=on_press) as listener:
    listener.join()
Leave a Comment