Created
November 3, 2021 17:13
-
-
Save suidroot/2dc809fdf0de54303e46143b6a586b1b to your computer and use it in GitHub Desktop.
Webex Controller
This file contains 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
tell application "System Events" | |
tell process "Webex Meetings" | |
activate | |
if exists (window "Webex") then | |
set window_name to "Webex" | |
end if | |
if exists (window "Cisco Webex Meetings") then | |
set window_name to "Cisco Webex Meetings" | |
end if | |
if ("{query}" = "Mute") then | |
if exists ((first button where accessibility description = "Unmute") of window window_name) then | |
click (first button where accessibility description = "Unmute") of window window_name | |
else if exists ((first button where accessibility description = "Mute") of window window_name) then | |
click (first button where accessibility description = "Mute") of window window_name | |
end if | |
end if | |
if ("{query}" = "Camera") then | |
if exists ((first button where accessibility description = "Start video") of window window_name) then | |
click (first button where accessibility description = "Start video") of window window_name | |
else if exists ((first button where accessibility description = "Stop video") of window window_name) then | |
click (first button where accessibility description = "Stop video") of window window_name | |
end if | |
end if | |
#click (first button where accessibility description = "{query}") of window window_name | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment