Andreik Posted April 26, 2014 Share Posted April 26, 2014 I read somewhere on forum long time ago that if I have a compiled script and I call an au3 script with AutoIt3ExecuteScript then I can call from au3 script all functions from compiled script (not just AutoIt native functions). Is that right or I understood wrong? Compiled script (main.exe) #pragma compile(AutoItExecuteAllowed,True) #include <Misc.au3> Run('"' & @ScriptFullPath & '" /AutoIt3ExecuteScript "script.au3"', @ScriptDir, @SW_HIDE) Do Sleep(10) Until _IsPressed('1B') Called script (script.au3) MsgBox(0,'','Start script') _ChooseColor() When main.exe it's executed, will be called script.au3 and message box appear but after this will stop because _ChooseColor() it's defined in Misc.au3 and this header it's included just in main.exe. Is this the default behavior? Is there any option to call functions included in compiled script? When the words fail... music speaks. Link to comment Share on other sites More sharing options...
JohnOne Posted April 26, 2014 Share Posted April 26, 2014 Yes, but not while it's already running. Pass the function name to call in command line 1, and arguments in command line n to compiled script. In compiled script parse $cmdline and use Call() function. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
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