halildurmus / dartwinrt

Idiomatic Dart projection of the modern Windows Runtime (WinRT) APIs.
BSD 3-Clause "New" or "Revised" License
50 stars 3 forks source link

Support `Windows.UI.UIAutomation` APIs #204

Closed xgwang-scienceos closed 1 year ago

xgwang-scienceos commented 1 year ago

Hello, I came across two questions regarding UI Automation APIs:

1) if I'd like to access the WinRT APIs in the Microsoft.UI.Automation namespace, it this the right project to make feature a request and/or make contributions?

2) if the answer for 1) is no, what is the recommended way of consuming C++ libraries in dart?

Thanks!

halildurmus commented 1 year ago
  1. if I'd like to access the WinRT APIs in the Microsoft.UI.Automation namespace, it this the right project to make feature a request and/or make contributions?

Could you please provide me with a link to the WinRT APIs you're referring to? I could not find any information about them.

Note that the WinRT namespaces always start with Windows.. Here is the link that provides a comprehensive list of all WinRT namespaces.

It's possible that you are referring to the WinRT APIs from Windows App SDK as their namespaces start with Microsoft.. However, supporting the WinRT APIs from the Windows App SDK is not within the scope of this project.

xgwang-scienceos commented 1 year ago

@halildurmus Thanks for the quick followup! This is where I got the Microsoft.UI.Automation namespace from.

That project seems to be a wrapper of the Windows.UI.UIAutomation namespace APIs, consumable from C++/WinRT.

So question 1) can be reframed to: if I'd like to access APIs in the Windows.UI.Automation namespace, it this the right project to make feature a request and/or make contributions?

halildurmus commented 1 year ago

That project seems to be a wrapper of the Windows.UI.UIAutomation namespace APIs, consumable from C++/WinRT.

In addition to the WinRT APIs, that project also seems to be wrapping the COM APIs for Windows UI Automation. I filed https://github.com/dart-windows/win32/issues/710 for adding these to the win32 package.

So question 1) can be reframed to: if I'd like to access APIs in the Windows.UI.Automation namespace, it this the right project to make feature a request and/or make contributions?

Yes!

I'll add the WinRT APIs from the Windows.UI.UIAutomation and Windows.UI.UIAutomation.Core namespaces in a few days.

xgwang-scienceos commented 1 year ago

Thanks a lot! Would you like to keep this topic open for tracking purpose or close it for now?

halildurmus commented 1 year ago

Thanks a lot! Would you like to keep this topic open for tracking purpose or close it for now?

Let's keep it open until we add all the necessary APIs.