-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
47 lines (36 loc) · 1.41 KB
/
main.py
File metadata and controls
47 lines (36 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from tkinter import messagebox
import pyautogui
from tkinter import *
import webbrowser
try:
import pyi_splash
pyi_splash.close()
except ImportError:
pass
root = Tk()
root.title("Auto Clicker BETA") #name of window
root.resizable(False, False) #Cant resize window
root.geometry("200x200")
new = 1
url = "https://github.com/NotsoFrostyy"
def openweb():
webbrowser.open(url,new=new)
def click():
messagebox.showwarning("Caution", "Auto Clicker will stop after 20 clicks")
x = 0
while x != 20:
pyautogui.leftClick()
x += 1
if x == 20:
messagebox.showinfo("Autoclicker", "Autoclicker reached 20 clicks")
button1 = Button(root, text="Start Clicking", width=10, height=1,
font=("helvetica", 12, "bold"), command=click, relief=GROOVE)
button1.place(x=50, y=50)
button4 = Button(root,text="Frost Software",width=12,height=1, bg="White",
fg="Black",activebackground="White", font=("helvetica", 10, "bold"), relief=SUNKEN,activeforeground="black")
button4.place(x=50, y=0)
Btn = Button(text = "GITHUB",command=openweb,bg="Grey", fg="white",width=7, height=1, font=("helvetica", 10, "bold"), relief=GROOVE)
Btn.place(x=50,y=100)
btn2 = Button(width=4, height=1, font=("helvetica", 10, "bold"), text="Exit",bg='grey', fg='white', relief=GROOVE, command=root.destroy)
btn2.place(x=118, y=100)
root.mainloop()