tommytx Posted September 27, 2010 Share Posted September 27, 2010 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 More sharing options...
Juvigy Posted September 27, 2010 Share Posted September 27, 2010 I think you can run it it like this (from cmd for example) : "AutoIt3.exe myscript.au3" Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 27, 2010 Share Posted September 27, 2010 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 More sharing options...
trancexx Posted September 27, 2010 Share Posted September 27, 2010 ...and compile them to a3x. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
tommytx Posted September 27, 2010 Author Share Posted September 27, 2010 (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 September 27, 2010 by tommytx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now