Sign in to follow this  
Followers 0
Andreik

AutoIt3ExecuteScript

2 posts in this topic

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

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