Widespread Augmented Reality

Widespread Augmented Reality
Click on the image to get the Android Augmented Reality Heads up Display

Friday, August 8, 2025

Python Code to Automatically Open and Sign on to Zoom

The png files are screenshots of the buttons and cropped in Windows paint.


import pyautogui
import schedule
import time
import subprocess
import os
import pandas as pd
import keyboard


# functions

def join_zoom_meeting(meeting_id, meeting_PW):

thisZoom = os.startfile("C:\\Users\\Conference\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe")
time.sleep(3) # Give Zoom time to open
joinbtn=pyautogui.locateOnScreen('joinameeting.png')
pyautogui.moveTo(joinbtn)
pyautogui.click()
time.sleep(2)
keyboard.write(meeting_id)
time.sleep(4)
joinbtn2=pyautogui.locateOnScreen('join.png')
pyautogui.moveTo(joinbtn2)
pyautogui.click()
time.sleep(4)
keyboard.write(meeting_PW)
time.sleep(4)
joinbtn3=pyautogui.locateOnScreen('join2.png')
pyautogui.moveTo(joinbtn3)
pyautogui.click()
time.sleep(4)
joinbtn4=pyautogui.locateOnScreen('join3.png')
pyautogui.moveTo(joinbtn4)
pyautogui.click()
return print("Opened Zoom: "+ meeting_id)


def terminate_zoom():
"""
Terminates the Zoom application on Windows.
"""
try:
os.system('taskkill /IM "Zoom.exe" /F')
print("Zoom application terminated successfully.")
except Exception as e:
print(f"Error terminating Zoom: {e}")



# main program
join_zoom_meeting('meetingd id', 'meeting password')
time.sleep(2)
terminate_zoom()

No comments:

Post a Comment