import pyautogui as auto
from tkinter import *
import keyboard as key
root = Tk()
def clicker():
while True:
if key.is_pressed(entry.get()):
auto.tripleClick()
root.geometry("300x100")
root.title("Autoclicker")
root.resizable(False, False)
label = Label(root, text = "Кнопка запуска автокликера:")
label.pack()
entry = Entry(root)
entry.pack()
button = Button(root, text = "Включить автокликер", command = clicker)
button.pack()
root.mainloop()