Jump to content
Sign in to follow this  

How to run uncompiled AU3 file via VB6

Recommended Posts

Private Sub Command1_Click()
Shell ("test.exe"), vbNormalFocus
End Sub

VB6 can run a compiled autoit file just fine as shown above... is there a way to run the au3 uncompiled version.

Can I put the driving source in front of it... or maybe make up a batch file with the driver + actual file.. and then call the bat file from vb6.

Any thoughts??

I have a series of au3 files that do many different tasks.. and hate to convert each of them to 400k + just so VB6 can run them... they are only about 2 or 3k while uncompiled but immediatley go to 400k + when compiled.

Share this post

Link to post
Share on other sites

Thanks PSALTY... I may have to put you on retainer.... worked perfect...

Course my exe pgm was not on my find anywhere list.. so I had to add the complete path..

But for future reference.. if anyone searchs for this same question.. the final code is shown below for using autoit uncompiled au3's with Visual Basic 6....

Private Sub Command4_Click()
Shell ("C:\Program Files\AutoIt3\AutoIt3.exe test.au3"), vbNormalFocus
End Sub

OOPS! meant to give credit to Juvigy.. as his worked perfect... however I am sure Psalty's would have worked if I had read the command line stuff he suggested...

Edited by tommytx

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...