AutoIT UIAutomation extension for C#

北战南征 提交于 2021-02-08 12:01:47

问题


Started automating a windows application using Visual Studio with AutoIT.But facing problems with some controls and I came to know about the AutoIt UIAutomation. This is working fine in AutoIt Scite editor but how can we use this in Visual Studio 2015?Thanks in advance.


回答1:


Edit: Per the comments of this thread, there is not a way to include other '.au3' files in C#. They'll need to be translated to C# :(


I misunderstood the question... this answers how to reference AutoItX in C#

Per this topic on the AutoIt Forums ...

  • Add a reference to AutoItX3.Assembly.dll to your project
  • Add a using AutoIt; statement in the files you want to use AutoIt functions

The AutoItX3.Assembly.dll is located in C:\Program Files (x86)\AutoIt3\AutoItX in a 'normal' installation



来源:https://stackoverflow.com/questions/57212939/autoit-uiautomation-extension-for-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!