Sign in to follow this  
Followers 0
sak719

Launching .au3 script within a .au3 script

4 posts in this topic

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



#3 ·  Posted (edited)

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 & '"')
    Run($file_exe)
Else
    $file_au3 = FileGetShortName($file_loc)
    Run(@AutoItExe & " " & $file_au3, "", @SW_HIDE)
EndIf

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

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

OK, those scripts did the trick.

Thanks again.

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  
Followers 0