Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save songxing10000/0bed64a6e2704de7197194304780b031 to your computer and use it in GitHub Desktop.
Save songxing10000/0bed64a6e2704de7197194304780b031 to your computer and use it in GitHub Desktop.
自动点击企业微信界面的登录按钮
tell application "System Events"
tell application "企业微信"
activate
end tell
if not (exists (button "登录" of window 1 of application process "企业微信" of application "System Events")) then
tell application "企业微信"
quit
end tell
end if
delay 0.35
tell application "企业微信"
activate
end tell
click button "登录" of window 1 of application process "企业微信" of application "System Events"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment