microsoft-ui-automation

How to pass POINT structure to ElementFromPoint method in Python?

微笑、不失礼 提交于 2019-11-28 10:40:58
问题 I'm trying to use method IUIAutomation::ElementFromPoint in Python using comtypes package. There are many examples how to use it in C++, but not in Python. This simple code reproduces the problem on 64-bit Windows 10 (Python 2.7 32-bit): import comtypes.client UIA_dll = comtypes.client.GetModule('UIAutomationCore.dll') UIA_dll.IUIAutomation().ElementFromPoint(10, 10) I get the following error: TypeError: Expected a COM this pointer as first argument Creating the POINT structure this way doesn

UI Automation events stop being received after a while monitoring an application and then restart after some time

依然范特西╮ 提交于 2019-11-28 09:17:22
We are using Microsoft's UIAutomation framework to develop a client that monitors events of a specific application and responds to them in different ways. We've started with the managed version of the framework, but due to delay issues, moved to the native version wrapped in UIACOMWrapper . After more issues with performance inside our (massive) WPF application, we decided to move it to a separate terminal application (transfer the events to our WPF app through UDP) which seemed to fix all the performance issues. The only problem is that it seems that every several minutes, the events for

How to use MS UI Automation in Delphi 2009

不问归期 提交于 2019-11-27 07:26:38
问题 I have a C# application, which uses Microsoft UI Automation functionality, e. g. a call like AutomationElement.RootElement.FindFirst(...) . Now I need to do the same thing (use MS UI Automation) in Delphi 2009. How can I a) declare that my Delphi code uses MS UI Automation library and b) make calls like AutomationElement.RootElement.FindFirst(...) ? There are several tutorials (tutorial 1, tutorial 2) explaining how to package one's own .NET code so that it can be used with Delphi, but in my