Jump to content

Launching .au3 script within a .au3 script


Recommended Posts

Have a similar frustration as startrek133, I know it's something simple I'm missing.

How do I launch a bbb.au3 script within an aaa.au3 script? I've tried #include, but don't

think it's the answer. Do I need to make bbb and .exe?

Thx much

Link to comment
Share on other sites

From "Autoit Wrappers"

; Run any au3 file from your program
; Author Valuater

$file_loc = @ScriptDir & "\Test.au3"

If @Compiled = 1 Then
    $file_exe = FileGetShortName(@AutoItExe & ' /AutoIt3ExecuteScript "' & $file_loc & '"')
    $file_au3 = FileGetShortName($file_loc)
    Run(@AutoItExe & " " & $file_au3, "", @SW_HIDE)

I use this as it allows testing an au3 and still works when the code is compiled.


Edited by Valuater


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

  • Recently Browsing   0 members

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