sak719 Posted September 9, 2011 Posted September 9, 2011 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
JohnOne Posted September 9, 2011 Posted September 9, 2011 ;script aaa.au3 Run(@AutoItExe & " " & @ScriptDir & "\bbb.au3") ;script bbb.au3 MsgBox(0,"From BBB", "Hello") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Valuater Posted September 9, 2011 Posted September 9, 2011 (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 September 9, 2011 by Valuater
sak719 Posted September 9, 2011 Author Posted September 9, 2011 OK, those scripts did the trick. Thanks again.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now