# Autoclicker - Feel free to modify
# If your using linux, set your enviroment to X11 or it wont woerk
import tkinter # Require to install
import pyautogui # Required to install
import time

def countdown(    numb = 10):
 if numb > 0:
        words.config(text=numb)
        main.after(1000, countdown, numb - 1)
 else:
        words.config(text="Acticated")
        while True:
         time.sleep(1)
         pyautogui.leftClick()
        

main = tkinter.Tk()
screen = tkinter.Frame(main)
words = tkinter.Label(screen, text="Click start to start the autoclicker", font="60")
button = tkinter.Button(screen, text="Start", font="15", command=countdown)

words.pack()
button.pack()
screen.pack()


main.mainloop()

