Jump to content

How To Use Autoitx3.dll In Visual Basic?


Recommended Posts

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!

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...