好吧,我正在制作这个程序,它将单击发送的链接缩放并在会议结束时关闭缩放 这是代码
import pyautogui
import time
import pause
import datetime
import schedule
YEAR = 2020
MONTH = 11
DATE = 6
HOUR = 10
MINUTES = 1
SECONDS = 00
now = datetime.datetime.now()
EndTime = now.replace(hour=HOUR, minute=MINUTES, second=SECONDS, microsecond=0)
JustBefore= now.replace(hour=HOUR, minute=MINUTES-1, second=SECONDS, microsecond=0)
def leave_the_meeting():
pyautogui.click(1198, 1072)
time.sleep(3)
pyautogui.click(1443, 998)
time.sleep(1)
pyautogui.click(1398, 933)
def click_the_attendance_link():
pyautogui.click(1665, 674)
time.sleep(9)
我想click_the_attendance_link()
一遍又一遍地继续运作,直到JustBefore
然后停止。然后我想leave_the_meeting()
在EndTime
.
我应该添加什么代码?