Easiest Way to Get Mute Status

So I made a bit of progress on this.

I discovered the UIAutomation capability in windows. Specifically I found this Python project on GitHub. GitHub - yinkaisheng/Python-UIAutomation-for-Windows: (Donot use 3.7.6,3.8.1)🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...

I am able to use their examples and when a Zoom meeting is in progress I can use a modified example to get the menu items from the Zoom Tools Menu. Specifically the output looks like the quoted text at the bottom of this post. I went through and bolded the interesting parts. As you can see if you extra key values from this text you could get the status of: Mute, Video, Screen Share, and Recording!

I am not much of a coder, so I am struggling to put it all together. But it should be possible to make a simple Python script that queries this and updates a simple JSON file with the current status of the mute, video, screen sharing, and recording. That can be used by other tools. Is anyone able to help?

ControlType: WindowControl ClassName: ZPControlPanelClass AutomationId: Rect: (2845,1032,3756,1085)[911x53] Name: Meeting Tools Handle: 0x100EEC(1052396) Depth: 0 SupportedPattern: LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (2845,1032,3756,1085)[911x53] Name: Handle: 0x0(0) Depth: 1 SupportedPattern: LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (2845,1032,2847,1085)[2x53] Name: Handle: 0x0(0) Depth: 2 SupportedPattern: LegacyIAccessiblePattern
ControlType: ButtonControl ClassName: AutomationId: Rect: (2847,1034,2935,1083)[88x49] Name: Unmute, currently muted, Alt+A Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (2847,1034,2935,1083)[88x49] Name: Handle: 0x0(0) Depth: 3 SupportedPattern: LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (2847,1034,2913,1083)[66x49] Name: Handle: 0x0(0) Depth: 4 SupportedPattern: LegacyIAccessiblePattern
ControlType: MenuItemControl ClassName: AutomationId: Rect: (2913,1036,2933,1062)[20x26] Name: Audio Settings Handle: 0x0(0) Depth: 4 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: ButtonControl ClassName: AutomationId: Rect: (2935,1034,3033,1083)[98x49] Name: start my video, Alt+V Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (2935,1034,3033,1083)[98x49] Name: Handle: 0x0(0) Depth: 3 SupportedPattern: LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (2935,1034,3011,1083)[76x49] Name: Handle: 0x0(0) Depth: 4 SupportedPattern: LegacyIAccessiblePattern
ControlType: MenuItemControl ClassName: AutomationId: Rect: (3011,1036,3031,1062)[20x26] Name: Video Settings… Handle: 0x0(0) Depth: 4 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (3033,1032,3130,1085)[97x53] Name: Handle: 0x0(0) Depth: 2 SupportedPattern: LegacyIAccessiblePattern
ControlType: MenuItemControl ClassName: AutomationId: Rect: (3130,1034,3210,1083)[80x49] Name: Security Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: ButtonControl ClassName: AutomationId: Rect: (3210,1034,3300,1083)[90x49] Name: Closed, open participants pane… Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: ButtonControl ClassName: AutomationId: Rect: (3300,1034,3380,1083)[80x49] Name: Open Chat Panel, Alt+H Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: ButtonControl ClassName: AutomationId: Rect: (3380,1034,3478,1083)[98x49] Name: Share Screen, Alt+S Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (3380,1034,3478,1083)[98x49] Name: Handle: 0x0(0) Depth: 3 SupportedPattern: LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (3380,1034,3456,1083)[76x49] Name: Handle: 0x0(0) Depth: 4 SupportedPattern: LegacyIAccessiblePattern
ControlType: MenuItemControl ClassName: AutomationId: Rect: (3456,1036,3476,1062)[20x26] Name: Share Option Handle: 0x0(0) Depth: 4 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: MenuItemControl ClassName: AutomationId: Rect: (3478,1034,3558,1083)[80x49] Name: Record Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern
ControlType: PaneControl ClassName: AutomationId: Rect: (3558,1032,3656,1085)[98x53] Name: Handle: 0x0(0) Depth: 2 SupportedPattern: LegacyIAccessiblePattern
ControlType: ButtonControl ClassName: AutomationId: Rect: (3682,1044,3744,1072)[62x28] Name: End, Alt+Q Handle: 0x0(0) Depth: 2 SupportedPattern: InvokePattern LegacyIAccessiblePattern