Botclicker.py - import time import threading from...

This preview shows page 1 out of 1 page.

import timeimport threadingfrom pynput.mouse import Button, Controllerfrom pynput.keyboard import Listener, KeyCodedelay = 0.01button = Button.leftstart_stop_key = KeyCode(char='s')exit_key = KeyCode(char='e')class ClickMouse(threading.Thread):def __init__(self, delay, button):super(ClickMouse, self).__init__()self.delay = delayself.button = buttonself.running = Falseself.program_running = Truedef start_clicking(self):self.running = Truedef stop_clicking(self):self.running = Falsedef exit(self):self.stop_clicking()
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
professor_unknown
Tags
Del tha Funkee Homosapien, pynput keyboard import Listener

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture