Repository navigation
Expand file tree
/
Copy pathNotificationSpammer.py
More file actions
60 lines (48 loc) · 1.57 KB
/
Copy pathNotificationSpammer.py
File metadata and controls
60 lines (48 loc) · 1.57 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
48
49
50
51
52
53
54
55
56
57
58
59
60
import win10toast
from tkinter import *
from tkinter import Menu
from tkinter import messagebox
import keyboard
import webbrowser
def update():
window.update()
def Email():
messagebox.showinfo('CONTACT', 'Email-One: kai9987kai@gmail.com \nEmail-Two:kai.piper@aol.co.uk')
def callback():
webbrowser.open_new(r"https://github.com/kai9987kai/NotificationSpammer")
def EXITME():
running = False
window.destroy()
def Spam():
running = True
while running:
update()
toaster = win10toast.ToastNotifier()
toaster.show_toast("Spam", "Spam", duration=1, threaded=True)
if keyboard.is_pressed('ctrl + c'):
break
window = Tk()
window.title("NOTIFICATION SPAMMER")
window.geometry('310x50')
lbl = Label(window, text="Press Start \n to Spam")
lbl.grid(column=0, row=0)
lbl2 = Label(window, text="ctrl + c for emergency stop")
lbl2.grid(column=5, row=0)
btn = Button(window, text="Start", fg='green', command=Spam)
btn1 = Button(window, text="Stop", fg='red', command=EXITME)
btn.grid(column=1, row=0)
btn1.grid(column=2, row=0)
menu = Menu(window)
new_item = Menu(menu)
new_item.add_command(label='GITHUB PAGE', command=callback)
new_item.add_command(label='CONTACT', command=Email)
new_item.add_separator()
new_item.add_command(label='START', command=Spam)
new_item.add_command(label='Exit', command=EXITME)
menu.add_cascade(label='Menu', menu=new_item)
window.config(menu=menu)
window.resizable(False, False)
window.geometry("+300+300")
window.attributes("-topmost", True)
window.iconbitmap('favicon.ico') # Set icon
window.mainloop()