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

Commit

Permalink
Merge pull request #317 from rutujadhanawade/automate
Browse files Browse the repository at this point in the history
Automatically Join zoom classes
  • Loading branch information
powerexploit authored Oct 2, 2020
2 parents 175b3ef + 40f2b81 commit 7f5e21f
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 0 deletions.
19 changes: 19 additions & 0 deletions System-Automation-Scripts/Zoom automation/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Zoom automation script
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.

## Setting up:

### Prerequisite:
- Download the zoom desktop application from [here](https://zoom.us/download)
- Make sure that the img folder and the script are in the same folder.

### Install the requirements using
```sh
$ pip3 install pyautogui
$ pip3 install opencv-python
```

## Running the script:
```sh
$ python3 zoom.py
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions System-Automation-Scripts/Zoom automation/zoom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
''' This script will automatically attend zoom meet
'''
import time
import pyautogui

ID = input('Enter Meeting ID: ')
PASSCODE = input('Enter Meeting password: ')
DURATION = input('Enter total duration of meet in seconds')


def autozoom():
# opening zoom app
pyautogui.hotkey('alt', 'f2')
time.sleep(5)
pyautogui.write('zoom')
pyautogui.press('enter', interval=0.5)
time.sleep(5)
# join button
x_c, y_c = pyautogui.locateCenterOnScreen('img/join.png', confidence=0.9)
time.sleep(5)
pyautogui.click(x_c, y_c)
# adding ID
time.sleep(5)
x_s, y_s = pyautogui.locateCenterOnScreen('img/s3.png', confidence=0.9)
pyautogui.click(x_s, y_s)
pyautogui.write(ID)
# video off
time.sleep(5)
x_s, y_s = pyautogui.locateCenterOnScreen('img/s2.png', confidence=0.9)
pyautogui.click(x_s, y_s)
# audio off
time.sleep(5)
x_s, y_s = pyautogui.locateCenterOnScreen('img/s1.png', confidence=0.9)
pyautogui.click(x_s, y_s)
pyautogui.press('enter', interval=5)
# entering a passcode
pyautogui.write(PASSCODE)
pyautogui.press('enter', interval=10)
print('Hold (Ctrl+c) to exit the program ')

# Total time of zoom session
time.sleep(DURATION)

# closing Zoom
pyautogui.hotkey('alt', 'f4')
time.sleep(0.5)
pyautogui.hotkey('alt', 'f4')


autozoom()

0 comments on commit 7f5e21f

Please sign in to comment.