-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuto_Start_Zoom.py
70 lines (50 loc) · 2.27 KB
/
Auto_Start_Zoom.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
from datetime import datetime
import time
import webbrowser as wb
import pyautogui as pag
while True: #running the loop until the scheduled time
today_date = datetime.now() #getting the system's date and time
Time = today_date.strftime("%I:%M:%S %p")
f = open("Links.txt") #opening and accessing links of the meetings
Links = f.readlines()
'''
You can add code for more meetings using the code as below with elif statement and time for the meeting.
NOTE: Remember to add the links of the meetings in the links.txt file.
'''
if Time == "07:59:30 AM": #time for the first meeting
# Change the time and name according to your need
print("Initializing Computer Class...")
Computer = Links[0]
wb.open(Computer)
print("Computer Class Initialized Successfully !")
time.sleep(2000) #time between subsequent meeting
elif Time == "08:36:00 AM": #time for the second meeting
# Change the time and name according to your need
print("Initializing English Class...")
English = Links[1]
wb.open(English)
print("English Class Initialized Successfully !")
time.sleep(2000) #time between subsequent meeting
elif Time == "9:10:00 AM": #time for the third meeting
# Change the time and name according to your need
print("Initializing Chemistry Class...")
Chemistry = Links[2]
wb.open(Chemistry)
print("Chemistry Class Initialized Successfully !")
time.sleep(2280) #time between subsequent meeting
elif Time == "09:51:00 AM": #time for the fourth meeting
# Change the time and name according to your need
print("Initializing Physics Class...")
Physics = Links[3]
wb.open(Physics)
print("Physics Class Initialized Successfully !")
time.sleep(2000) #time between subsequent meeting
elif Time == "10:26:00 PM AM": #time for the last meeting
# Change the time and name according to your need
print("Initializing Maths Class...")
Maths = Links[4]
wb.open(Maths)
print("Maths Class Initialized Successfully !")
quit()
else:
pass