Category : ui-automation

I am trying to list all the "names" child windows specially: Unmute currently muted (button) Here is my code to list all child: void ListDescendants(IUIAutomationElement* pParent, int indent) { if (pParent == NULL) return; IUIAutomationTreeWalker* pControlWalker = NULL; IUIAutomationElement* pNode = NULL; g_pAutomation->get_ControlViewWalker(&pControlWalker); if (pControlWalker == NULL) goto cleanup; pControlWalker->GetFirstChildElement(pParent, &pNode); if (pNode == NULL) ..

Read more

I want to get this Zoom Meeting’s "Mute My Audio" caption on windows using uiautomation with C++ this is my calling current code: // Get the handle of the Zoom Meetings window. zoomWnd = ::FindWindow(NULL, "Zoom Meeting"); if (zoomWnd != NULL) { std::cout<<"zoom meeting"<<"n"; IUIAutomationElement *zoom = GetTopLevelWindowByName(L"Zoom Meeting"); rawListDescendants(zoom, "Meeting"); } OUTPUT: zoom meeting ..

Read more

I am using UIA automation to get some controls. Case 1: HWND hwnd = FindWindow(NULL, L"Window"); //name of foreground application window automation->ElementFromHandle(hwnd, &element); Case 2: HWND hwnd = GetForegroundWindow(); automation->ElementFromHandle(hwnd, &element); In second case I am not able to access some controls from the UIA tree with element as root. How are FindWindow and GetForegroundWindow ..

Read more