Last active
June 17, 2021 15:39
-
-
Save hzhv/8dd79d36508babb229264ad2c540b940 to your computer and use it in GitHub Desktop.
Open Zoom on windows automatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: UTF-8 -*- | |
import pyautogui | |
import time | |
import webbrowser | |
# #cyclic run pyautogui.position() to find the coord fo mouse | |
# while True: | |
# print("当前鼠标的坐标为:") | |
# print(pyautogui.position()) | |
# time.sleep(1) | |
def AutoOpen_Zoom(): | |
url = "https://xxxxx.zoom.us" | |
webbrowser.open(url) | |
time.sleep(3) # waiting for loading the url | |
pyautogui.moveTo(1012,186) #让鼠标移动到(x,x) | |
pyautogui.click(clicks=1) | |
time.sleep(10) | |
times = "2020-06-03 14:57" | |
while True: | |
nowtime = time.strftime('%Y-%m-%d %H:%M') | |
if (times == nowtime): | |
AutoOpen_Zoom() | |
break | |
else: | |
print(time.strftime('%Y-%m-%d %H:%M:%S')) | |
time.sleep(30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment