Exit Posted December 5, 2014 Share Posted December 5, 2014 It was a gray, cold, foggy December day. Since you can either be gloomy or do something totally crazy. I preferred the second. I wanted to see if you can get #include files from a server during compile time. And yes, it works. Here's the proof: ; Get include file from HTTP server. ; first press F5. Error message: Can't open include file ; then press F7 to download include file, compile script and run script. ; then press F5 again. Error message again. ; delete local include file #AutoIt3Wrapper_Run_Before="%scitedir%\..\autoit3.exe" /AutoIt3ExecuteLine FileDelete('_MyInclude.au3') ; download new include file #AutoIt3Wrapper_Run_Before="%scitedir%\..\autoit3.exe" /AutoIt3ExecuteLine InetGet('http://autoit.oo3.co/user/autoit/UDF/_MyInclude.au3','_MyInclude.au3',1) ; run the compiled exe #AutoIt3Wrapper_Run_After=start %out% ; comment next line to keep the include file #AutoIt3Wrapper_Run_After="%scitedir%\..\autoit3.exe" /AutoIt3ExecuteLine FileDelete('_MyInclude.au3') #include "_MyInclude.au3" ; http://autoit.oo3.co/user/autoit/UDF/_MyInclude.au3 Enjoy iamtheky 1 App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
hydranix Posted December 6, 2014 Share Posted December 6, 2014 Not a bad idea there using the wrapper like that. This makes me ponder with using a central server packed with countless up-to-date #include files that exports a virtual filesystem that can be accessed "locally" by the compiler... Link to comment Share on other sites More sharing options...
iamtheky Posted December 6, 2014 Share Posted December 6, 2014 (edited) compiling from a repo is more common than crazy. Add self destruct to the exe, and keep the au3 and you could ensure the latest version is always being ran, because it is compiled everytime, like a very strict subversion. **Doing it with includes is pretty boss, never thought of compiling a single function and nothing but. Edited December 6, 2014 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Exit Posted December 7, 2014 Author Share Posted December 7, 2014 So I wonder why there are no equivalents to compile directives (F7) #AutoIt3Wrapper_Run_Before / _After for RUN (F5) environment. Would be a handy extension. My example in post #1 would then run even in RUN environment. Any pro or contra ? Opinions ? Conceivable for a feature request? App: Au3toCmd UDF: _SingleScript() 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