Jump to content

How to run uncompiled AU3 file via VB6


tommytx
 Share

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.

Link to comment
Share on other sites

See Using AutoIt\Running Scripts in the help file for running the interpreter from a command line.

;)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
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...