Jump to content
Sign in to follow this  
everseeker

How do I run an au3 script from another

Recommended Posts

everseeker

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

Share this post


Link to post
Share on other sites
weaponx

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  

×