Jump to content

How to execute another .au3 script properly?


Recommended Posts

Hello,

With Run() u can run .bat, .exe files and so on. But not .au3 ones, i think. Only if you compile them, but in that case i dont like to do so.

And i also dont want to #include them, i just want to run them.

I think i seen once that someone ran it by calling autoit.exe or something, with the file as parameter.

Is that the best way to do it? Or is there a better way? Coz i need to get the return value of that script somehow...

thx in advance,

ND

Link to comment
Share on other sites

you can Run() any file, as long as you include the program the file runs with.

Run("Notepad.exe C:\AutoIt\AutoItlog.txt")

that will open the AutoItlog.txt file in notepad.

The same can be done with Au3 scripts.

Run("C:\Program Files\AutoIt3\AutoIt3.exe D:\path to script\script.au3")

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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