boyhong Posted October 10, 2015 Share Posted October 10, 2015 Compiled.exe [/ErrorStdOut] /AutoIt3ExecuteScript file [params ...]for example:example.exe /AutoIt3ExecuteScript example.au3Test version:3.3.14.2HELP ME. THANKS. Link to comment Share on other sites More sharing options...
boyhong Posted October 10, 2015 Author Share Posted October 10, 2015 Tried it can not: example.exe /AutoIt3ExecuteScript example.a3x HELP! Link to comment Share on other sites More sharing options...
kylomas Posted October 10, 2015 Share Posted October 10, 2015 boyhong,Read thisImportant NotesHowever, the executable must have been compiled with the #pragma compile(AutoItExecuteAllowed, True) directive as the default setting does not permit use of the /AutoItExecuteScript or /AutoItExecuteLine parameters. Moreover, since the interpreter stub searches for any required standard #include files in its current folder, UDF functions and various constants may not be available as those files are normally only found in the full AutoIt install. It is therefore recommended that any scripts intended to be run in this manner are compiled to the .a3x format rather then being left as plain .au3 text filesCorrect usage of single and double quotation marks is important when using the command line - even for double single quotation marks.then post the source of your "example.exe"kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
boyhong Posted October 10, 2015 Author Share Posted October 10, 2015 (edited) I do not know how to operate:"However, the executable must have been compiled with the #pragma compile(AutoItExecuteAllowed, True) directive as the default setting does not permit use of the /AutoItExecuteScript or /AutoItExecuteLine parameters. " "example.exe" is any one of a compiled program.thanks for @kylomas Edited October 10, 2015 by boyhong Link to comment Share on other sites More sharing options...
jguinch Posted October 10, 2015 Share Posted October 10, 2015 Example :compiled.exe#pragma compile(AutoItExecuteAllowed, True) ; .... ; ... ; you script code ; ... ; ...test.au3MsgBox(0, "", "Hello !")To run test.au3 using compiled.exe as interpreter :compiled.exe /AutoIt3ExecuteScript test.au3 robertocm 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
boyhong Posted October 10, 2015 Author Share Posted October 10, 2015 (edited) thanks a lot. @jguinch Edited October 10, 2015 by boyhong 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