Jump to content

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

Everseeker

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...