Leo1906 Posted May 24, 2017 Share Posted May 24, 2017 Hey there, I just discovered that you can't use the flag /AutoIt3ExecuteScript on compiled autoit executables to run non compiled code. At first I tested using the cmd, but there were no results. Than I wrote it into a script, but still nothing. #AutoIt3Wrapper_UseUpx=n $PathToScript = @DesktopDir&"\test.au3" Run('"'&@AutoItExe&'" /AutoIt3ExecuteScript "'&$PathToScript&'"') The script definitely exists and just opens a MsgBox. When running the code not compiled from Scite it works fine. But when compiling the exe and running it, nothing happens. I tried .au3 and .a3x ... So using a compiled Autoit exe as interpreter seems not to work anymore. Can someone confirm this? Would take the sense out of a3x I think .. My OS is Windows 10 x64 with all current updates. OS Language is German. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 24, 2017 Developers Share Posted May 24, 2017 Add this to the top of the script: #pragma compile(AutoItExecuteAllowed, true) Jos noellarkin 1 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...
Leo1906 Posted May 25, 2017 Author Share Posted May 25, 2017 Ah ok, thanks a lot. I thought that this option would be enabled by default. noellarkin 1 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