tommytx 0 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. Share this post Link to post Share on other sites
Juvigy 49 Posted September 27, 2010 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
PsaltyDS 39 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 Share this post Link to post Share on other sites
trancexx 1,013 Posted September 27, 2010 ...and compile them to a3x. ♡♡♡ . eMyvnE Share this post Link to post Share on other sites
tommytx 0 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 Share this post Link to post Share on other sites