Skip to content

Instantly share code, notes, and snippets.

@hzhv
Last active June 17, 2021 15:39
Show Gist options
  • Save hzhv/8dd79d36508babb229264ad2c540b940 to your computer and use it in GitHub Desktop.
Save hzhv/8dd79d36508babb229264ad2c540b940 to your computer and use it in GitHub Desktop.
Open Zoom on windows automatically
# -*- 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