Apr-13-2021, 02:43 PM
Hi. I have lost all my hopes fixing this issiue. Can anyone help?
import mouse from tkinter import * import time import os run = type(True) def noclick(): run = False exit() def clicker(): cap = float(e) while (run == True): mouse.click("left") time.sleep(cap) mouse.on_double_click(lambda: exec(clicker())) mouse.on_right_click(lambda: exec(noclick())) print("Literaly a clicker for POPCAT") print("Enter number (the less the faster it goes)") print("Right click on mouse to turn the script off") e = input("Time gaps between clicks: ") print("Double click to activate")
Error:mouse.on_double_click(lambda: exec(clicker()))
TypeError: exec() arg 1 must be a string, bytes or code object