【发布时间】:2019-12-06 10:50:07
【问题描述】:
我正在尝试获取另一个应用程序唯一路径的按钮,因为我想保存它以便在我在另一次运行时关闭应用程序后再次访问它。我对保存路径的任何可能方式感兴趣,我可以按照该路径自动访问按钮。
我得到了如下代码中的按钮,但我不知道如何保存它的路径(如在日志中)以便再次访问它。
GetCursorPos(&cursorPos);
CComPtr<IUIAutomationElement> elFromPoint;
_automation->ElementFromPoint(cursorPos, &elFromPoint);
【问题讨论】:
标签: c# c++ ui-automation microsoft-ui-automation