diff --git a/README.md b/README.md index add4c4a..2f4d67c 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,10 @@ This python script signs into your zoom meetings / classes on time **automatical ## A Video Tutorial https://www.youtube.com/watch?v=V3IOfvGmqxs +## ZOOM Setup instructions for muting mic and camera when joining + +**Look ZOOM setup instructions folder** + ## Setup instructions **Requirements:** python-3.8.6 diff --git a/ZOOM setup instructions/Capture.PNG b/ZOOM setup instructions/Capture.PNG new file mode 100644 index 0000000..0092367 Binary files /dev/null and b/ZOOM setup instructions/Capture.PNG differ diff --git a/ZOOM setup instructions/Capture2.PNG b/ZOOM setup instructions/Capture2.PNG new file mode 100644 index 0000000..bd2658b Binary files /dev/null and b/ZOOM setup instructions/Capture2.PNG differ diff --git a/ZOOM setup instructions/Capture3.PNG b/ZOOM setup instructions/Capture3.PNG new file mode 100644 index 0000000..ecd6c9f Binary files /dev/null and b/ZOOM setup instructions/Capture3.PNG differ diff --git a/automatic_signin.gif b/automatic_signin.gif index 14f18e3..f17ecb1 100644 Binary files a/automatic_signin.gif and b/automatic_signin.gif differ diff --git a/join_btn.png b/join_btn.png index 7c2901c..af89fce 100644 Binary files a/join_btn.png and b/join_btn.png differ diff --git a/join_button.png b/join_button.png index 2133bdd..715a206 100644 Binary files a/join_button.png and b/join_button.png differ diff --git a/main.py b/main.py index 272682d..8d6079c 100644 --- a/main.py +++ b/main.py @@ -4,49 +4,65 @@ import pandas as pd from datetime import datetime +#automated the installation of pip packages +try: + subprocess.call("pip3 install pandas") + subprocess.call("pip3 install pyautogui") +except: + pass + +curtime = datetime.now().strftime("%H:%M") +print("Current time -> " + curtime) def sign_in(meetingid, pswd): #Opens up the zoom app #change the path specific to your computer #If on windows use below line for opening zoom - #subprocess.call('C:\\myprogram.exe') + ZOOM_EXECUTABLE = "C:\\Users\\username\\AppData\\Roaming\\Zoom\\bin\\Zoom.exe" + subprocess.call(ZOOM_EXECUTABLE) #If on mac / Linux use below line for opening zoom - subprocess.call(["/usr/bin/open", "/Applications/zoom.us.app"]) - - time.sleep(10) + #subprocess.call(["/usr/bin/open", "/Applications/zoom.us.app"]) + + print("Zoom launching") + time.sleep(10) #wait for zoom launch + print("Zoom launched") #clicks the join button join_btn = pyautogui.locateCenterOnScreen('join_button.png') pyautogui.moveTo(join_btn) + time.sleep(1) pyautogui.click() - + print("Join clicked") + time.sleep(4) + # Type the meeting ID - meeting_id_btn = pyautogui.locateCenterOnScreen('meeting_id_button.png') - pyautogui.moveTo(meeting_id_btn) - pyautogui.click() + #no need to click meeting id textbox because its allready focused pyautogui.write(meetingid) - - # Disables both the camera and the mic - media_btn = pyautogui.locateAllOnScreen('media_btn.png') - for btn in media_btn: - pyautogui.moveTo(btn) - pyautogui.click() - time.sleep(2) + + print("Entered meeting id") + + time.sleep(2) + + # Disables both the camera and the mic when joining please follow readme instructions + #clicking check box are unreliable and unstable # Hits the join button join_btn = pyautogui.locateCenterOnScreen('join_btn.png') pyautogui.moveTo(join_btn) pyautogui.click() - + print("Join button clicked") time.sleep(5) + #Types the password and hits enter - meeting_pswd_btn = pyautogui.locateCenterOnScreen('meeting_pswd.png') - pyautogui.moveTo(meeting_pswd_btn) - pyautogui.click() + #no need to click meeting password textbox because its allready focused + pyautogui.write(pswd) + time.sleep(1) pyautogui.press('enter') - + + print("Password entered") + print("End of a login cycle") # Reading the file df = pd.read_csv('timings.csv') @@ -54,11 +70,9 @@ def sign_in(meetingid, pswd): # checking of the current time exists in our csv file now = datetime.now().strftime("%H:%M") if now in str(df['timings']): - - row = df.loc[df['timings'] == now] - m_id = str(row.iloc[0,1]) - m_pswd = str(row.iloc[0,2]) - - sign_in(m_id, m_pswd) - time.sleep(40) - print('signed in') + row = df.loc[df['timings'] == now] + m_id = str(row.iloc[0,1]) + m_pswd = str(row.iloc[0,2]) + sign_in(m_id, m_pswd) + time.sleep(40) + print('signed in') diff --git a/media_btn.png b/media_btn.png deleted file mode 100644 index 42d6ded..0000000 Binary files a/media_btn.png and /dev/null differ diff --git a/meeting_id_button.png b/meeting_id_button.png deleted file mode 100644 index 2cafb0d..0000000 Binary files a/meeting_id_button.png and /dev/null differ diff --git a/meeting_pswd.png b/meeting_pswd.png deleted file mode 100644 index eb8b364..0000000 Binary files a/meeting_pswd.png and /dev/null differ diff --git a/timings.csv b/timings.csv index fc120be..053b82a 100644 --- a/timings.csv +++ b/timings.csv @@ -1,3 +1,2 @@ timings,meetingid,meetingpswd -,, -,, \ No newline at end of file +15:18,929 1379 6591,292610 \ No newline at end of file