import keyboard
import mouse
import time
from tkinter import *
root = Tk()
root.attributes("-alpha", 0.95)
root.title("Tagar Clicker 10cps v1_0")
root.geometry("350x160")
root.iconbitmap(default="logo.ico")
root.resizable(False, False)
label = Label(text="Нажмите комбинацию клавиш Alt+Z \n для начала работы автокликера.", font=1, foreground="white", background="brown")
label.pack()
one_label = Label(text="Введите сторону \n для клика( left / right): ", foreground="silver", background="brown")
one_label.pack()
label1 = Entry(background="silver", foreground="black")
label1.pack(anchor="n", ipady=2, ipadx=1, padx=7, pady=12)
godo = ''
label = Button(text="Принять", font=1, foreground="red")
label.pack(anchor="n", ipady=1, ipadx=1, pady=4)
root["bg"] = "brown"
root.mainloop()
#SAM KI
isClicking = False
def set_clicker():
global isClicking
if isClicking:
isClicking = False
else:
isClicking = True
keyboard.add_hotkey("Alt + Z", set_clicker)
while True:
if isClicking:
mouse.double_click(button = label1)
time.sleep(0.2)