forked from missionalpha2502/MLH-LHD_Learn-Day-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzoom autobot.py
54 lines (47 loc) · 1.57 KB
/
zoom autobot.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
import pyautogui
import subprocess
import datetime
import time
def join(id, password):
subprocess.call("C:\\Users\\lucifer\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Zoom\\Zoom.exe")
while True:
join1 = pyautogui.locateOnScreen('join1.png')
if join1 != None:
pyautogui.click(join1)
print("Clicked Join 1")
break
else:
print("Could not find join 1")
time.sleep(2)
while True:
feild = pyautogui.locateOnScreen('feild.png')
if feild != None:
pyautogui.click(feild)
print("Made the Input Feild active")
pyautogui.typewrite(id)
pyautogui.click(pyautogui.locateOnScreen('join2.png'))
break
else:
print("Could not find the input feild")
time.sleep(2)
while True:
feild2 = pyautogui.locateOnScreen('feild2.png')
if feild2 != None:
pyautogui.click(feild2)
print("Made the Input Feild 2 active")
pyautogui.typewrite(password)
pyautogui.click(pyautogui.locateOnScreen('join3.png'))
break
else:
print("Could not find the input feild 2")
time.sleep(2)
while True:
now = datetime.datetime.now()
current_time = (now.strftime("%m-%d-%y %H:%M"))
# 11-10-2021
if current_time == "011-10-21 11:27":
join("792 961 8726", "wU66Ae")
break
else:
print("Not the time")
time.sleep(10)