Sign in to follow this  
Followers 0
sl_alagappan

How To Use Autoitx3.dll In Visual Basic?

6 posts in this topic

hi all,

How to use the AutoitX3.dll in Visual Basic and call the functions?

When I tried to reference the Autoit dll, it is not getting reference using the project menu.

any suggestions pl?

Share this post


Link to post
Share on other sites



have you registered the file with regsvr32 autoit3x.dll ??

if so, using from vb should only require adding a reference to autoitx3 1.0 type library.

Private Sub Form_Load()

Dim cAutoit As New AUTOITX3Lib.Control

cAutoit.CDTray "e:", "open"

End Sub

Hope this helps!

Share this post


Link to post
Share on other sites

registered the dll using regsvr32 and referenced the same in VB

But when running yr code, the error raised is "expected user-defined type, not project".

any chance? :D

Share this post


Link to post
Share on other sites

Sorry.. missed the .control in AUTOITX3Lib.Control

it's ok now..

thanks a lot.

Share this post


Link to post
Share on other sites

hi,

when using autoitv3 dll in VB, how do I run the following command?

When I run the following while loading a form, the error raised is "type mismatch"

Private Sub Form_Load()
Dim a As Long
Dim cAutoit As New AUTOITX3Lib.Control
MsgBox "@ComSpec" & " /c " & "d:\psexec \\postmaster d:\utility\shutpm.exe"
a = cAutoit.RunWait("@ComSpec" & " /c " & "d:\psexec \\postmaster d:\utility\shutpm.exe", "", "@SW_MAXIMIZE")
MsgBox a
End Sub

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0