Jump to content

Recommended Posts

Posted

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

Test version:3.3.14.2

HELP ME.  THANKS.

Posted

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

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
Posted

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

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...