Sign in to follow this  
Followers 0
tommytx

How to run uncompiled AU3 file via VB6

5 posts in this topic

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



I think you can run it it like this (from cmd for example) :

"AutoIt3.exe myscript.au3"

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

...and compile them to a3x.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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  
Followers 0