Jump to content

Compiling AutoIt scripts with Directives


Recommended Posts

Hi,

We are using Aut2exe to compile our scripts from a command line.

I've recently noticed that the compiles ignore the compilier directives section in the scripts?

Should I be using something different than Aut2exe if I want it to compile and use the compilier directives in the script?

Also I've read the page about all the compilier directives that can be used, is there a better place that explains exactly what each does and the options?

For example:

#AutoIt3Wrapper_Run_Debug_Mode= ;(Y/N)Run Script with console debugging. Default=N

#AutoIt3Wrapper_AU3Check_Parameters= ;Au3Check parameters

Are the answers case sensitive? (Y or y)

for _Run_Debug_Mode= I should probably know this but "console debugging" does this mean it will open up a console and show the output as it compiles?

_AU3Check_Parameters = Where can I find a list of these?

Thanks,

Terry

Link to comment
Share on other sites

Hi,

We are using Aut2exe to compile our scripts from a command line.

I've recently noticed that the compiles ignore the compilier directives section in the scripts?

Should I be using something different than Aut2exe if I want it to compile and use the compilier directives in the script?

Also I've read the page about all the compilier directives that can be used, is there a better place that explains exactly what each does and the options?

For example:

#AutoIt3Wrapper_Run_Debug_Mode= ;(Y/N)Run Script with console debugging. Default=N

#AutoIt3Wrapper_AU3Check_Parameters= ;Au3Check parameters

Are the answers case sensitive? (Y or y)

for _Run_Debug_Mode= I should probably know this but "console debugging" does this mean it will open up a console and show the output as it compiles?

_AU3Check_Parameters = Where can I find a list of these?

Thanks,

Terry

Also I just found the au3check parameters..

Usage: Au3Check [-q] [-d] [-u file] [-w[-] n].. [-v[-] n].. [-I dir].. file.au3

-q : quiet (only error/warn output)

-d : as Opt("MustDeclareVars", 1)

-I dir : additional directories for searching include files

-U -|file : output unreferenced UDFs and global variables

-w 1 : already included file (on)

-w 2 : missing #comments-end (on)

-w 3 : already declared var (off)

-w 4 : local var used in global scope (off)

-w 5 : local var declared but not used (off)

-w 6 : warn when using Dim (off)

-v 1 : show include paths/files (off)

-v 2 : show lexer tokens (off)

Exit codes:

0 : success - no errors or warnings

1 : warning(s) only

2 : syntax error(s)

3 : usage or input error

My question is in the compilier directives would I put:

#AutoIt3Wrapper_AU3Check_Parameters=-q

or

#AutoIt3Wrapper_AU3Check_Parameters="-q"

or

#AutoIt3Wrapper_AU3Check_Parameters=q

Thanks

Link to comment
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
 Share

  • Recently Browsing   0 members

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