everseeker Posted April 4, 2008 Posted April 4, 2008 I need the ability to Call an Au3 and pass data to it. Of note, the sctipt is actually going to call itself. It's the only way I can think of to abort a loop if an error occurs... call a function that passes the current record (+1) to a copy of itself, then killing its own process... The program will proceed from the next record..... But I'd rather not compile the program.... Everseeker
weaponx Posted April 4, 2008 Posted April 4, 2008 See the bottom of this page for /AutoIt3ExecuteScript.http://www.autoitscript.com/autoit3/docs/i...htm#CommandLine
everseeker Posted April 4, 2008 Author Posted April 4, 2008 See the bottom of this page for /AutoIt3ExecuteScript.http://www.autoitscript.com/autoit3/docs/i...htm#CommandLineIn short, what I needed is Run("AutoIt3.exe /ErrorStdOut /AutoIt3ExecuteScript test1.au3 MyPassedVariable")Thanks... Let you all know how this "solution" works out... Everseeker
weaponx Posted April 4, 2008 Posted April 4, 2008 Any script you compile in AutoIt can run an au3. Say your script is called "MyScript.au3". You do this: Run(@ScriptFullPath & " /ErrorStdOut /AutoIt3ExecuteScript MyOtherScript.au3 MyPassedVariable") When you compile you will have MyScript.exe launch MyOtherScript.au3.
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