none
UIAutomationClient vs Interop.UIAutomationClient RRS feed

Answers

  • UIAutomationClient is part of .Net framework. It wraps the native UIAutomationClient API in a .Net friendly way. It is not up to date with the Windows version, rather it only uses a minimum version of the native UIAutomationClient API because each version of .Net Framework has to support multiple version of Windows. You can use it without COM knowledge. 

    Interop.UIAutomationClient is a machine generated wrapper of the native UIAutomationClient API. It is always up to date with the native UIAutomationClient API of your Windows version. To use it you have to have COM knowledge or you will have memory leaks. And you have to check Windows version at runtime to make sure the API you are calling does exist on the target machine. E.g. You should only call IUIAutomationTextRange3 on Windows 10 build 1703 or higher. But this also enables you to use the latest APIs when available, without waiting for .Net Framework. 



    Visual C++ MVP



    • Edited by Sheng Jiang 蒋晟 Tuesday, November 19, 2019 2:29 PM
    • Marked as answer by MS_IN_TJ Wednesday, November 20, 2019 9:15 AM
    Tuesday, November 19, 2019 2:26 PM
  • Hi MS_IN_TJ,

    Thank you for posting here..

    Interop.UIAutomationClient is a NuGet package, you can get it by following these steps:

    Tools -> BuGet Package Manager -> Manage NuGet Package for Solution.

    Hope this could be helpful.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by MS_IN_TJ Wednesday, November 20, 2019 9:15 AM
    Wednesday, November 20, 2019 7:37 AM

All replies

  • Hello MS_IN_TJ,

    Are you talking about Interop.UIAutomationClient NuGet package? If this is true, so you are developing .NET application?

    And what do you mean of UIAutomationClient? 

    Best regards,

    Rita


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 19, 2019 2:37 AM
  • Hi Rita,

    Are you talking about Interop.UIAutomationClient NuGet package?

    Yes. (Also it comes with UICOMWrapper)

    If this is true, so you are developing .NET application?

    Yes

    And what do you mean of UIAutomationClient? 

    .NET dll which come along framwork.


    • Edited by MS_IN_TJ Tuesday, November 19, 2019 3:26 AM
    Tuesday, November 19, 2019 3:26 AM
  • Hello MS_IN_TJ,

    Thanks for your confirmation. Since this issue is .NET developing related I'll move it to C# forum for more professional support.

    Best regards,

    Rita


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 19, 2019 7:14 AM
  • UIAutomationClient is part of .Net framework. It wraps the native UIAutomationClient API in a .Net friendly way. It is not up to date with the Windows version, rather it only uses a minimum version of the native UIAutomationClient API because each version of .Net Framework has to support multiple version of Windows. You can use it without COM knowledge. 

    Interop.UIAutomationClient is a machine generated wrapper of the native UIAutomationClient API. It is always up to date with the native UIAutomationClient API of your Windows version. To use it you have to have COM knowledge or you will have memory leaks. And you have to check Windows version at runtime to make sure the API you are calling does exist on the target machine. E.g. You should only call IUIAutomationTextRange3 on Windows 10 build 1703 or higher. But this also enables you to use the latest APIs when available, without waiting for .Net Framework. 



    Visual C++ MVP



    • Edited by Sheng Jiang 蒋晟 Tuesday, November 19, 2019 2:29 PM
    • Marked as answer by MS_IN_TJ Wednesday, November 20, 2019 9:15 AM
    Tuesday, November 19, 2019 2:26 PM
  • Hi Sheng,

    Thank you very much from your reply.

    Can you please tell me how can i create Interop.UIAutomationClient or where i can get in System.

    Wednesday, November 20, 2019 3:15 AM
  • Hi MS_IN_TJ,

    Thank you for posting here..

    Interop.UIAutomationClient is a NuGet package, you can get it by following these steps:

    Tools -> BuGet Package Manager -> Manage NuGet Package for Solution.

    Hope this could be helpful.

    Best Regards,

    Timon


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    • Marked as answer by MS_IN_TJ Wednesday, November 20, 2019 9:15 AM
    Wednesday, November 20, 2019 7:37 AM
  • See Generating your own interop dll for calling the Windows UIA API from C# code and Building and running a UIA sample app on Windows 10.

    If you use the "Add reference" feature in Visual Studio to add reference to uiautomationcore.dll, then you will be using the tlbimp version included in that version of Visual Studio to generate UIAutomationClient. 



    Visual C++ MVP

    Wednesday, November 20, 2019 3:20 PM