Share this post

Link to post

Share on other sites

AC130 0

AC130 0

Just "add reference" to the AutoitX.dll and set Embed Interop Types" to FALSE (see properties tab in references). This worked ok for me.

In the class where you want to use AutoIt functionality (C# code):

AutoItX3Lib.AutoItX3Class au3 = new AutoItX3Lib.AutoItX3Class();

au3.AutoItSetOption("WinTitleMatchMode", 2);

au3.WinWaitActive(windowName, "", maxTimeInSec)

...

Do I have to register it on the host computer first and then do that? Because, when I try to add a reference without registering, I receive error, "A Reference To AutoItX3_X64.dll could not be added. Please make sure that the file is accessible..."

Share this post

Link to post

Share on other sites

texasranger 0

texasranger 0

AC130, did you resolve this with the API for VB.NET as you mention in your last post? In other words, are you now able to call AutoIT commands directly in your Visual Basic solution? If so, do you mind sharing this? I am basically in the exact situation you were in when you started this discussion. However, I am fairly new to this & need a lot of guidance right now.

I am trying to create an VB application that use mostly AutoIT commands & am unsure of how exactly to begin.