Jump to content

au3 check parameters?


Recommended Posts

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?

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

  • 11 years later...

Ok, I know this reply is ludicrously late, but it's Friday afternoon. I stumbled across this thread when wanting to understand AU3Check better. Curiosity piqued, I attempted to find a way to turn off a specific warning, both by trial and error and searching. Eventually, success, by trial and error! However, I was then embarassed to discover that the solution was documented and staring me in the face all the time. It is even already quoted in this thread.

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

as above. But the eye too easily skips past the "[-]" in "[-w[-] n]". To turn off option 1 you give " -w- 1". I thought I'd mention it in case anybody finds themselves here making the same search I did.

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