Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 7f5e21f

Browse files
authored
Merge pull request #317 from rutujadhanawade/automate
Automatically Join zoom classes
2 parents 175b3ef + 40f2b81 commit 7f5e21f

File tree

6 files changed

+69
-0
lines changed

6 files changed

+69
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Zoom automation script
2+
This script will automatically attend Zoom Classes. The basic features are It accept the Meeting ID and Meeting Password from the Console and Opens the Zoom Class keeping Camera/Audio off.
3+
4+
## Setting up:
5+
6+
### Prerequisite:
7+
- Download the zoom desktop application from [here](https://zoom.us/download)
8+
- Make sure that the img folder and the script are in the same folder.
9+
10+
### Install the requirements using
11+
```sh
12+
$ pip3 install pyautogui
13+
$ pip3 install opencv-python
14+
```
15+
16+
## Running the script:
17+
```sh
18+
$ python3 zoom.py
19+
```
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
''' This script will automatically attend zoom meet
2+
'''
3+
import time
4+
import pyautogui
5+
6+
ID = input('Enter Meeting ID: ')
7+
PASSCODE = input('Enter Meeting password: ')
8+
DURATION = input('Enter total duration of meet in seconds')
9+
10+
11+
def autozoom():
12+
# opening zoom app
13+
pyautogui.hotkey('alt', 'f2')
14+
time.sleep(5)
15+
pyautogui.write('zoom')
16+
pyautogui.press('enter', interval=0.5)
17+
time.sleep(5)
18+
# join button
19+
x_c, y_c = pyautogui.locateCenterOnScreen('img/join.png', confidence=0.9)
20+
time.sleep(5)
21+
pyautogui.click(x_c, y_c)
22+
# adding ID
23+
time.sleep(5)
24+
x_s, y_s = pyautogui.locateCenterOnScreen('img/s3.png', confidence=0.9)
25+
pyautogui.click(x_s, y_s)
26+
pyautogui.write(ID)
27+
# video off
28+
time.sleep(5)
29+
x_s, y_s = pyautogui.locateCenterOnScreen('img/s2.png', confidence=0.9)
30+
pyautogui.click(x_s, y_s)
31+
# audio off
32+
time.sleep(5)
33+
x_s, y_s = pyautogui.locateCenterOnScreen('img/s1.png', confidence=0.9)
34+
pyautogui.click(x_s, y_s)
35+
pyautogui.press('enter', interval=5)
36+
# entering a passcode
37+
pyautogui.write(PASSCODE)
38+
pyautogui.press('enter', interval=10)
39+
print('Hold (Ctrl+c) to exit the program ')
40+
41+
# Total time of zoom session
42+
time.sleep(DURATION)
43+
44+
# closing Zoom
45+
pyautogui.hotkey('alt', 'f4')
46+
time.sleep(0.5)
47+
pyautogui.hotkey('alt', 'f4')
48+
49+
50+
autozoom()

0 commit comments

Comments
 (0)