-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmain.py
57 lines (49 loc) · 1.39 KB
/
main.py
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
import time
import pyautogui
import keyboard
import tkinter as tk
def printScore():
# Create the window
root = tk.Tk()
root.title("Snaps Sent")
root.geometry("300x50+844+91")
# Create the label widget
printScore.score_label = tk.Label(root, text="Score: 0", font=("Arial", 32))
printScore.score_label.pack()
root.attributes("-topmost", True)
root.update()
printScore()
print("Press ENTER to start...")
keyboard.wait('enter')
snapsSent = 0
count = 0
root = tk.Tk()
root.title("Snaps Sent")
while True:
username = "Enter Username here"
if keyboard.is_pressed('delete'):
break
pyautogui.moveTo(993, 485, duration=0.0)
pyautogui.leftClick()
pyautogui.moveTo(990, 815, duration=0.0)
pyautogui.leftClick()
pyautogui.moveTo(1118, 838, duration=0.0)
pyautogui.leftClick()
pyautogui.moveTo(923, 222, duration=0.0)
pyautogui.leftClick()
pyautogui.typewrite(username, interval=0.0)
pyautogui.moveTo(977, 311, duration=0.0)
pyautogui.leftClick()
pyautogui.moveTo(985, 848, duration=0.0)
pyautogui.leftClick()
# time.sleep(1)
snapsSent = snapsSent + 1
printScore.score_label.config(text=f"Snaps: {snapsSent}")
root.update()
count = count + 1
if count == 500:
pyautogui.moveTo(83, 46, duration=0.25)
time.sleep(1)
pyautogui.leftClick()
count = 0
time.sleep(8)