Skip to content

Commit 6d14a0e

Browse files
authored
Merge pull request #171 from kritikaparmar-programmer/zoom
Added automating script for Zoom
2 parents 813a9be + b86726b commit 6d14a0e

File tree

8 files changed

+119
-0
lines changed

8 files changed

+119
-0
lines changed

Python/zoom_automation/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Zoom Bot
2+
## Script Automate zoom to attend meetings automatically
3+
4+
This is a script in python to automate zoom for attending scheduled meetings automatically.
5+
6+
### Libraries used:
7+
* [Pyautogui](https://pypi.org/project/PyAutoGUI/)
8+
* [subprocess](https://docs.python.org/3/library/subprocess.html)
9+
10+
### Install Requirements
11+
12+
Run the follwing in cmd to install the requirements for the script
13+
Ensure you have python >= 3.5 version
14+
```
15+
pip install subprocess
16+
pip install pyautogui
17+
pip install time
18+
pip install pandas
19+
20+
```
21+
22+
## How to use the script for automating the stuff?
23+
#### Step 1 - Open Schedule.csv and make the following changes
24+
- Write Timings (in 24:00 HR format)
25+
- Enter Meedtingid of the meeting
26+
- Enter meeting password
27+
- Enter Duration of the meeting in minutes
28+
29+
#### Step 2 - Running the program
30+
- Open CMD or Terminal and direct to the main.py file
31+
- Enter
32+
```
33+
python3 main.py
34+
```
35+
- The program will run and automatically joins the meeting at the scheduled time
36+
37+
## Use Case
38+
Enter Timings,meedtingid,meetingpswd in schedule.csv
39+
![Screenshot 2020-10-29 224216](https://user-images.githubusercontent.com/59971890/97608318-32efd000-1a38-11eb-8f41-2ae1b2d4cb69.png)
40+
41+
Run the program as stated above and zoom window will open up
42+
![zoomwindow](https://user-images.githubusercontent.com/59971890/97608594-8eba5900-1a38-11eb-89ea-abc99cf73a05.png)
43+
44+
The meeting will start and end according to the specifications gievn by you.

Python/zoom_automation/join_btn.png

833 Bytes
Loading
2.61 KB
Loading

Python/zoom_automation/main.py

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import subprocess # to open zoom application
2+
import pyautogui # automate mouse movement and typing
3+
import time
4+
from datetime import datetime
5+
import pandas as pd
6+
import os
7+
8+
9+
def sign_in(meet_id, password, duration):
10+
11+
# enter your zoom application path, example is shown
12+
subprocess.Popen("C:\\Users\\Admin\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe")
13+
14+
time.sleep(2)
15+
16+
# Click join button
17+
join = pyautogui.locateCenterOnScreen('join_button_img.png')
18+
pyautogui.moveTo(join)
19+
pyautogui.click()
20+
21+
# Type the meeting ID
22+
meeting_id_btn = pyautogui.locateCenterOnScreen('meeting_id_btn.png')
23+
pyautogui.moveTo(meeting_id_btn)
24+
pyautogui.click()
25+
pyautogui.write(meet_id)
26+
27+
# Disables both the camera and the mic
28+
media_btn = pyautogui.locateAllOnScreen('media_btn.png')
29+
for btn in media_btn:
30+
pyautogui.moveTo(btn)
31+
pyautogui.click()
32+
time.sleep(2)
33+
34+
# Hits the join button
35+
join_btn = pyautogui.locateCenterOnScreen('join_btn.png')
36+
pyautogui.moveTo(join_btn)
37+
pyautogui.click()
38+
39+
time.sleep(5)
40+
41+
#Types the password and hits enter
42+
meeting_pswd_btn = pyautogui.locateCenterOnScreen('meeting_pswd.png')
43+
pyautogui.moveTo(meeting_pswd_btn)
44+
pyautogui.click()
45+
pyautogui.write(password)
46+
pyautogui.press('enter')
47+
48+
#Total time of zoom session
49+
time.sleep(duration)
50+
51+
# closing Zoom
52+
os.system("TASKKILL /F /IM Zoom.exe")
53+
time.sleep(0.5)
54+
55+
56+
# Reading the file
57+
df = pd.read_csv('schedule.csv')
58+
59+
while True:
60+
# checking of the current time exists in our csv file
61+
now = datetime.now().strftime("%H:%M")
62+
if now in str(df['timings']):
63+
64+
row = df.loc[df['timings'] == now]
65+
meet_id = str(row.iloc[0,1])
66+
meet_paasword = str(row.iloc[0,2])
67+
duration = str(row.iloc[0,3])
68+
69+
# calling sign_in funstion and passing requires parameters
70+
sign_in(meet_id, meet_paasword, duration)
71+
time.sleep(40)
72+
print('Signed in, Meeting Started')
73+

Python/zoom_automation/media_btn.png

400 Bytes
Loading
2.24 KB
Loading
10.3 KB
Loading

Python/zoom_automation/schedule.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
timings,meedtingid,meetingpswd
2+
22:40,85640231302,nUZX80

0 commit comments

Comments
 (0)