Jump to content
Sign in to follow this  

How do I run an au3 script from another

Recommended Posts


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....


Share this post

Link to post
Share on other sites

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.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.