-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspam_exe.py
More file actions
42 lines (25 loc) · 787 Bytes
/
spam_exe.py
File metadata and controls
42 lines (25 loc) · 787 Bytes
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
import pyautogui, time
from tkinter import *
def run():
time.sleep(5) #so it doesn't start spamming right away
i = 0
words = textInput.get().split()
while i < int(repetitions.get()):
for word in words:
pyautogui.typewrite(word + " ")
pyautogui.press("enter")
i += 1
root = Tk()
root.title("Quick Order Chat Killer")
root.geometry("600x600")
textInput = Entry(root)
textInput.insert(0, "Sample Text")
repetitions = Entry(root)
repetitions.insert(0, "5")
warning = Label(root, text="You have 5 seconds to set the cursor in the right window after pressing the button")
submitButton = Button(root, text="Start", command = run)
textInput.pack()
repetitions.pack()
warning.pack()
submitButton.pack()
root.mainloop()