Python Forum
Mouse lib keeps dropping same error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse lib keeps dropping same error
#1
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
Reply


Messages In This Thread
Mouse lib keeps dropping same error - by MLGpotato - Apr-13-2021, 02:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dropping rows with missing values NewBeie 2 2,384 Jul-27-2020, 06:29 AM
Last Post: NewBeie
  mouse 0.7.0 - mouse polling hate 125-1000hz penahuse 1 2,549 Dec-06-2019, 09:51 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020