I am developing UI Automation client(c++) for metro app. I am able to get element on the metro UI.I am using Raw Tree Walker
getting the Automation Tree
automation->get_RawViewWalker(&pTreeWalker);
then I am iterating and getting the element on metro app
Retrieving the properties of the UI element
I have image and text item in side the list item. On click on that launch a webpage.
list item, image and Text item doesn't have Invoke Capability.so I am trying to get Clickable Point, so that I can click the point.I am also using Inspect.exe to see the UI element.in
inspect.exe does show cliackable point for listitem, image and text item.but when i
problematically trying to get it using GetClickablePoint() i am getting gotClickable = 0 and POINT field remains 0.hr = S=OK
POINT clickable; BOOL gotClickable; hr = p1->GetClickablePoint(&clickable,&gotClickable);
I want to use the clickable point in the call to mouse_event
VOID WINAPI mouse_event(__in DWORD dwFlags, __in DWORD dx, __in DWORD dy, __in DWORD dwData,
__in ULONG_PTR dwExtraInfo );