It will allow you to monitor keyboard events. # return True to pass the event to other handlersįirst of all if you want to monitor global input outside the Python window you will need pyHook or something similar. Pyautogui.click(interval = click_interval) Interval = float(input("Please give me an interval for between clicks in seconds: "))ĭo I need to make a tkinter message box to make the switch or can I use a hotkey?Ĭlick_interval = float(input("Please give an interval between clicks in seconds: "))Ĭlass AutoClicker(multiprocessing.Process): I am aware of Ctrl-C, and you'll see that in my current code, but I want the program to work so that the hotkey doesn't have to be activated in the python window. I want a user to be able to specify a click interval and then turn the automatic clicking on and off with a hotkey. I'm new to Python and I figured I'd make a simple autoclicker as a cool starter project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |