Cannot get insides of the element from other app

  c++, ui-automation, windows

I want to find specific button with text(find it by text) and press it.
I’m trying to get insides from ‘group'(‘группа’ on screanshot) element of a teleramm desctop app, i know there is defenetly list of buttons there, but i cant find anything with UIA and inspect.exe. I tried both raw automtaion dll and nuget UIAComWrapper.
SendMessage(to get text) and EnumChildWindows didn’t help me as well, as SendMessage enum does not return other handles inside of app.

AutomationElementCollection automation_element_collection = group_element.FindAll(TreeScope.Children, Condition.TrueCondition); //empty collection
AutomationElement automation_element_collection = group_element.FindFirst(TreeScope.Children, Condition.TrueCondition); //returns null
            
TreeWalker raw_view_walker = TreeWalker.RawViewWalker;
AutomationElement automation_element = raw_view_walker.GetFirstChild(group_element); //returns null

What am i doing wrong and may there be any other projects to help me with this?

screanshot from inspector.exe

Source: Windows Questions

LEAVE A COMMENT