import keyboard as key
import mouse
import time
import tkinter as tk
root=tk.Tk()
def btn_click():
from tkinter import messagebox
messagebox.showinfo(title="window", message="ENG:[hold v to autoclick][press Alt + 0 to close program]")
def btn_click2():
start_key = "v"
stop_key = "Alt + 0"
from tkinter import messagebox
messagebox.showinfo(title="window", message="[AutoClicker started^_^]")
while True:
if key.is_pressed(start_key):
time.sleep(0.11)
mouse.double_click(button = "left")
if key.is_pressed(stop_key):
break
root["bg"]="#fafafa"
root.title("AutoClicker")
root.wm_attributes("-alpha", 1)
root.geometry("280x180")
root.resizable(width=False, height=False)
canvas=tk.Canvas(root, height=280, width=180)
canvas.pack()
frame=tk.Frame(root, bg="#C4AAB7")
frame.place(relwidth=1, relheight=1)
frame.place()
title=tk.Label(frame, text="by Oleksandr1337", bg="#C4AAB7", font="40")
title.pack()
btn=tk.Button(frame, text="instruction", bg="white", padx="65", pady="10", command=btn_click)
btn.pack()
btn2=tk.Button(frame, text="start AutoClicker", bg="white", padx="50", pady="10", command=btn_click2)
btn2.pack()
root.mainloop()
После запуска автокликера программа не отвечает, но автокликер работает.