Angel Posted July 6, 2008 Share Posted July 6, 2008 Hi, I have an autoit compiled script that dynamically generates some autoit script code, saves it into a file and then executes it by calling the compiled script with the /AutoIt3ExecuteScript command line parameter. This works really well except when I try to use the #include statement on the dynamic autoit script code. I expected that if I #included an au3 file in the compiled script, the script that I execute via /AutoIt3ExecuteScript would also have access to it. However this is not the case. Instead it seems that I need to do a FileInstall of the files that I need to include. This seems kind of redundant since the file is already "included" in the compiled script. It is also not so clean since it means that I need to clutter the application folder with these include files. Obviously I don't know the internals of AutoIt and this could be necessary due to the way AutoIt works, but it would be great if you could access the files included in the compiled script when using the /AutoIt3ExecuteScript command line option. Cheers, Amadawn Link to comment Share on other sites More sharing options...
Developers Jos Posted July 6, 2008 Developers Share Posted July 6, 2008 (edited) I expected that if I #included an au3 file in the compiled script, the script that I execute via /AutoIt3ExecuteScript would also have access to it. However this is not the case. Instead it seems that I need to do a FileInstall of the files that I need to include. This seems kind of redundant since the file is already "included" in the compiled script. It is also not so clean since it means that I need to clutter the application folder with these include files.That doesn't work like that since you started another AutoIt3 session using your compiled script's included runtimemodule, but that doesn't mean you will have access to the included source code in your compiled script.Jos Edited July 7, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Angel Posted July 7, 2008 Author Share Posted July 7, 2008 That doesn't work like take since you started another AutoIt3 session using your compiled script's included runtimemodule, but that doesn't mean you will have access to the included source code in your compiled script.JosThanks for explaining the technical details Jos. Nevertheless this is something that would be really useful! Hopefully someone could pick the idea and implement it :-)Angel 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