boyhong

About cmdline not work:/AutoIt3ExecuteScript

6 posts in this topic

Compiled.exe [/ErrorStdOut] /AutoIt3ExecuteScript file [params ...]
for example:
example.exe /AutoIt3ExecuteScript example.au3

Test version:3.3.14.2

HELP ME.  THANKS.

Share this post


Link to post
Share on other sites



Tried it can not:  example.exe /AutoIt3ExecuteScript example.a3x 

HELP!

Share this post


Link to post
Share on other sites

boyhong,

Read this

Important Notes

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. 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 files

Correct 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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by boyhong

Share this post


Link to post
Share on other sites

Example :

compiled.exe

#pragma compile(AutoItExecuteAllowed, True)
; ....
; ...
; you script code
; ...
; ...

test.au3

MsgBox(0, "", "Hello !")

To run test.au3 using compiled.exe as interpreter :

compiled.exe /AutoIt3ExecuteScript test.au3

 

1 person likes this

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

thanks a lot.   :cheer:     @jguinch

Edited by boyhong

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