Jump to content
Sign in to follow this  

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

Share this post

Link to post
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


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.