Jump to content

Recommended Posts

Posted

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?

Posted

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!

Posted

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

Posted

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

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
  • Recently Browsing   0 members

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