├── execute.bat ├── join.png ├── main.py └── README.md /execute.bat: -------------------------------------------------------------------------------- 1 | "Path\To\python.exe" "Path\To\main.py" 2 | pause -------------------------------------------------------------------------------- /join.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashM398/LetMeSleep/HEAD/join.png -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import pyautogui 2 | import schedule 3 | import time 4 | meetId = "Replace this with Meeting ID" 5 | password = "Replace this with Password" 6 | def attendZoom(): 7 | time.sleep(0.2) 8 | pyautogui.press('esc',interval=0.1) 9 | time.sleep(0.3) 10 | pyautogui.press('win',interval=0.5) 11 | pyautogui.write('zoom') 12 | pyautogui.press('enter',interval=0.5) 13 | time.sleep(5) 14 | x,y = pyautogui.locateCenterOnScreen('join.png', confidence = 0.8) 15 | pyautogui.click(x,y) 16 | pyautogui.press('enter',interval=5) 17 | pyautogui.write(meetId) 18 | pyautogui.press('enter',interval=5) 19 | pyautogui.write(password) 20 | pyautogui.press('enter',interval = 10) 21 | pyautogui.hotkey('alt','f4') 22 | time.sleep(0.5) 23 | pyautogui.hotkey('alt','f4') 24 | if __name__ == "__main__": 25 | attendZoom() 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # LetMeSleep 2 | Automation Script to Attend Zoom Classes 3 | 4 | 5 | ### Requirements: 6 | - Python 3.x.x 7 | - pyautogui 8 | - schedule 9 | 10 | ### Setup 11 | - Open execute.bat in any text editor and edit the path to python.exe and to main.py 12 | - If your colleges uses the same meeting id, then enter the meeting id and password in the main.py 13 | 14 | ### Run 15 | To run the program, you can simply run the execute.bat file or execute main.py 16 | 17 | ### Schedule 18 | To schedule the program to execute every morning, simply search for Task Scheduler in Cortana search in Windows and in task scheduler you can create a new basic task and specify the path to the batch file (execute.bat) 19 | 20 | That's it, now you can sleep peacefully! 21 | 22 | ### ToDo 23 | - [ ] Write a program to schedule the file to execute every morning or at specific time. 24 | - [ ] Update the Meeting Id and Password according to each class timing. --------------------------------------------------------------------------------