|
| 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