Jump to content
Sign in to follow this  
ryeguy

au3 check parameters?

Recommended Posts

ryeguy

I'm kind of confused as to how to turn off a parameter in the au3 wrapper. In au3check, I don't want it to throw a warning if it sees the same file included twice. It says "-w 2" controls this option. I have tried:

-w 2 (hoping its a toggle)
-w 2 0
-w 2 off

Nothing works. What is the syntax to shut this off?

Share this post


Link to post
Share on other sites
Melba23

ryeguy,

As I read the Au3Check syntax, it is "-w 1" that controls the "already included" test (This is taken from Tylo's original thread):

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)

So as the AutoIt3Wrapper directive syntax used for checking UDFs is:

#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6

it would seem that you merely have to omit "-w 1" from the commandline (or AutoIt3Wrapper directive) to remove that option.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
ryeguy

ryeguy,

As I read the Au3Check syntax, it is "-w 1" that controls the "already included" test (This is taken from Tylo's original thread):

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)

So as the AutoIt3Wrapper directive syntax used for checking UDFs is:

#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6

it would seem that you merely have to omit "-w 1" from the commandline (or AutoIt3Wrapper directive) to remove that option.

M23

You're right, it is -w 1 not -w 2. That was my mistake, I was typing from memory.

I tried what you showed above. It appears that while I can ADD parameters, it doesn't seem to work when I want to change it from its default. Is there a default config file somewhere?

Here's what I have:

#Region;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=unlock.ico
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_au3check_parameters=-w 2
#Tidy_Parameters=/kv 25 /sf
#Obfuscator_Parameters=/striponly
#EndRegion;**** Directives created by AutoIt3Wrapper_GUI ****
Edited by ryeguy

Share this post


Link to post
Share on other sites
Melba23

ryeguy,

I did notice in the list above that the default for "-w 1" is "on"

From the AutoIt3Wrapper Help file:

; AU3CHECK settings
#AutoIt3Wrapper_Run_AU3Check=                 ;(Y/N) Run au3check before compilation. Default=Y
#AutoIt3Wrapper_AU3Check_Parameters=           ;Au3Check parameters
#AutoIt3Wrapper_AU3Check_Dat=                 ;Override the default au3check definition

so perhaps using the AU3Check_Dat directive will override the default setting - unfortunately there is no indication of what value needs to be set! Perhaps a simple "Y/N"?

Sorry I cannot be of more help - I feel we will have to wait until Jos passes by to get a definitive answer.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
crashdemons

ryeguy,

I did notice in the list above that the default for "-w 1" is "on"

From the AutoIt3Wrapper Help file:

; AU3CHECK settings
#AutoIt3Wrapper_Run_AU3Check=       ;(Y/N) Run au3check before compilation. Default=Y
#AutoIt3Wrapper_AU3Check_Parameters=    ;Au3Check parameters
#AutoIt3Wrapper_AU3Check_Dat=       ;Override the default au3check definition

so perhaps using the AU3Check_Dat directive will override the default setting - unfortunately there is no indication of what value needs to be set! Perhaps a simple "Y/N"?

Sorry I cannot be of more help - I feel we will have to wait until Jos passes by to get a definitive answer.

M23

If you look in the AutoIt directly where Au3Check is, there is also an Au3Check.dat.

Perhaps #AutoIt3Wrapper_AU3Check_Dat is wanting the path or filename of an external Au3check.dat file for configuration?

Of course, as you said, we will have to wait for Jos to confirm or deny this theory.

(I don't see anything remotely related to the OP's issue in the existing au3check.dat though)

Edited by crashdemons

My Projects - WindowDarken (Darken except the active window) Yahsmosis Chat Client (Discontinued) StarShooter Game (Red alert! All hands to battlestations!) YMSG Protocol Support (Discontinued) Circular Keyboard and OSK example. (aka Iris KB) Target Screensaver Drive Toolbar Thingy Rollup Pro (Minimize-to-Titlebar & More!) 2D Launcher physics example Ascii Screenshot AutoIt3 Quine Example ("Is a Quine" is a Quine.) USB Lock (Another system keydrive - with a toast.)

Share this post


Link to post
Share on other sites
ryeguy

Thanks for the help guys, glad I'm not just going crazy.

I tried

;seeing if this is maybe a list of default params
#AutoIt3Wrapper_AU3Check_Dat=-w 2

and

;seeing if its a toggle
#AutoIt3Wrapper_AU3Check_Dat=N
#AutoIt3Wrapper_au3check_parameters=-w 2

No dice. Guess I'll just have to wait.

Share this post


Link to post
Share on other sites
Melba23

ryeguy,

Out of interest, why do you want multiple includes of the same file? Does it not pose problems of multiple variable declarations, etc?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
ryeguy

ryeguy,

Out of interest, why do you want multiple includes of the same file? Does it not pose problems of multiple variable declarations, etc?

M23

I released a commercial product and have serial key checks littered in my application. I have the serial check in serialcheck.au3 and I just #include it where I want the check to occur.

I do this because I read that it's harder to detect a serial check when it's an inline function and not a jump, but now that I think about this, is this even an issue in autoit since it's interpreted and not compiled? [Also: I do know that autoit is not the best choice for security and nothing I can do will stop piracy, but everything helps]

Share this post


Link to post
Share on other sites
Melba23

ryeguy,

Thank you for that - I imagined it was something along those lines.

From my understanding of how a compiled AutoIt .exe works, I believe you are correct in thinking that it makes no difference whether the function is inline or called.

I take it you know of and use Obfuscator to get as much protection (if that is indeed the word to use!) as you can?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.