-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
94 lines (80 loc) · 2.01 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import pyautogui
from time import sleep
import pandas as pd
from datetime import datetime
pyautogui.FAILSAFE = False
def sign_in(meeting_id, pswd):
def keypress(pyautogui, code):
pyautogui.keyDown(code)
pyautogui.keyUp(code)
#Open Zoom:
print("Opening Zoom")
pyautogui.keyDown("winleft")
pyautogui.keyUp("winleft")
sleep(3)
pyautogui.write("zoom")
pyautogui.keyDown("\n")
pyautogui.keyUp("\n")
sleep(15)
print("Done")
print("clicking join")
sleep(2)
while pyautogui.locateOnScreen('D:\zoom\joinbutton.png'):
sleep(3)
w = pyautogui.locateOnScreen('D:\zoom\joinbutton.png')
pyautogui.moveTo(w)
pyautogui.click()
break
else: print(".")
print("done")
sleep(5)
print("entering meeting id")
sleep(2)
while pyautogui.locateOnScreen('D:\zoom\meetingid.png'):
sleep(2)
q = pyautogui.locateOnScreen('D:\zoom\meetingid.png')
pyautogui.moveTo(q)
pyautogui.click()
break
else: print("")
pyautogui.write(meeting_id)
sleep(3)
print("joining")
sleep(2)
while pyautogui.locateOnScreen('D:\zoom\joinbtn.png'):
sleep(2)
q = pyautogui.locateOnScreen('D:\zoom\joinbtn.png')
pyautogui.moveTo(q)
pyautogui.click()
break
else: print(".")
sleep(3)
#checking if invalid id pops up
while pyautogui.locateOnScreen('D:\zoom\inv.png'):
import rr
break
else: print(".")
print("entering password")
sleep(4)
pyautogui.write(pswd)
print("clicking joinmeeting")
sleep(3)
r = pyautogui.locateOnScreen('D:\zoom\joinmeeting1.png')
print(r)
pyautogui.click(r)
sleep(5)
print("meeting_joined")
print("I'm Looking for the timetable")
df = pd.read_csv('D:\zoom\enter.csv')
while True:
#checking timetable
now = datetime.now().strftime('%H:%M')
if now in str(df['timings']):
row = df.loc[df['timings'] == now]
m_id = str(row.iloc[0,1])
m_pswd = str(row.iloc[0,2])
sign_in(m_id, m_pswd)
sleep(5)
print("signed in")
elif pyautogui.locateOnScreen('D:\zoom\sign.png'):
pyautogui.hotkey('altleft', 'f4')