-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (28 loc) · 1.01 KB
/
Copy pathmain.py
File metadata and controls
29 lines (28 loc) · 1.01 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
import pyautogui,keyboard,psutil,time
def btnCheck():
flw = pyautogui.locateOnScreen('dataset/follow.png', grayscale=True, confidence=0.92)
if flw != None:
pyautogui.leftClick(flw)
def btnYoure():
cls = pyautogui.locateOnScreen('dataset/close.png', grayscale=True, confidence=0.92)
scroll = pyautogui.locateOnScreen('dataset/scroll.png', grayscale=True, confidence=0.92)
youre = pyautogui.locateOnScreen('dataset/youre.png', grayscale=True, confidence=0.92)
if cls != None and youre == None:
pyautogui.leftClick(scroll)
pyautogui.leftClick(scroll)
pyautogui.leftClick(youre)
elif youre != None:
pyautogui.leftClick(youre)
else:
pass
def btnBreak():
breakfollow = pyautogui.locateOnScreen('dataset/break.png', grayscale=True, confidence=0.92)
if breakfollow != None:
pyautogui.leftClick(breakfollow)
while True:
btnCheck()
time.sleep(0.50)
btnYoure()
time.sleep(0.25)
btnBreak()
# SORRY, I FORGOT TO ADD STOP COMMAND