-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (29 loc) · 852 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import pyautogui
import schedule
import time
meetId = ""
email = ""
periodInHour = ""
periodInSecond = float(periodInHour)*60
shutDown = "shutdown /s"
def attend():
time.sleep(0.2)
pyautogui.press('esc',interval=0.1)
time.sleep(0.3)
pyautogui.press('win',interval=0.5)
pyautogui.write('GoToWebinar')
pyautogui.press('enter',interval=0.5)
time.sleep(5)
x,y = pyautogui.locateCenterOnScreen('ID.png', confidence = 0.8)
pyautogui.click(x,y)
pyautogui.write(meetId)
pyautogui.press('tab',interval=5)
pyautogui.write(email)
pyautogui.press('enter',interval=5)
x,y = pyautogui.locateCenterOnScreen('Open.png', confidence = 0.8)
pyautogui.click(x,y)
time.sleep(periodInSecond)
pyautogui.write(shutDown)
pyautogui.press('enter',interval=5)
if __name__ == "__main__":
attend()