Jump to content

Au3Check.exe


tylo
 Share

Recommended Posts

If the interpreter allows this syntax, then by all means its proper.

I was just giving an example from

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.5 Prototype

by which all noobs, will get the error if they run the compile from the SciTE editor

doesn't bother me, i just delete the line if i use the GuiBuilder

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

That GuiBuilder-generated code was a hack to get around that fact that old versions of GUIConstants.au3 didn't have the $WS_CLIPSIBLINGS variable defined. (And, yes, the styles should be BitOR'ed instead of added.)

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

Does the Au3Check not like UNC paths or maybe hidden folder in UNC paths?

Example of include statement the produces ERROR: can't open include file

#include "\\server\hidden_path$\Library\library.au3"

I select continue anyway, and the program compiles and runs as it should.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • 1 month later...

tylo, FYI.

The line below is legal per docs - au3check chokes on it, won't let you define array elements when you dimension said array.

Dim $completed_patnums[2] = [1,StringStripWS(StringLeft($file_contents[$i], StringInStr($file_contents[$i], ',') - 1), 3)]

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Link to comment
Share on other sites

Ok, so the following is new syntax:

- Const def in functions

- Array initialization

- I think SvenP mentioned once that obj methods could have empty arguments, like: meth(x,,,,). Is this implemented?

Anything else?

blub

Link to comment
Share on other sites

>Running AU3Check...C:\Program Files\AutoIt3\SciTe\Defs\Unstable\Au3Check\au3check.dat
C:\Documents and Settings\Gary\My Documents\Projects\filegetter.au3(21,12) : ERROR: TCPStartup() [built-in] called with wrong number of args.
TCPStartup()
~~~~~~~~~~~^
C:\Documents and Settings\Gary\My Documents\Projects\filegetter.au3(52,17) : ERROR: TCPShutdown() [built-in] called with wrong number of args.
    TCPShutdown()
~~~~~~~~~~~~~~~~^

I believe theres more

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Added v1.40 in the first post.

- added: Const parameters. Array initialization. Prevent redecl. of parameters.

No .dat file included, sorry. Could someone create this. JdeB, Valik.

blub

Link to comment
Share on other sites

  • Developers

Added v1.40 in the first post.

- added: Const parameters. Array initialization. Prevent redecl. of parameters.

No .dat file included, sorry. Could someone create this. JdeB, Valik.

<{POST_SNAPBACK}>

Here's the last version generated from the 3.1.1.55 beta docs: http://www.autoitscript.com/fileman/users/jdeb/beta/au3check.dat

-or-

Download the latest SciTe4Au3Upd.exe which contains definition files for all included tools.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Found two issues, tylo.

The first is pretty minor. This is legal AutoIt code:

Global Const $array[2] = [1, 2]

I get this error:

New AutoIt v3 Script.au3(6,20) : ERROR: syntax error

Global Const $array[

~~~~~~~~~~~~~~~~~~~^

Removing the Const keyword avoids the error. Const arrays are allowed when using the initializer syntax so this shouldn't generate an error (I really do want to declare a constant array).

The second one causes syntax checking to fail on a lot of my functions. The example code looks like this:

Func Test($param = "")
    If $param = "" Then $param = "value"
EndFunc

And the error:

New AutoIt v3 Script.au3(9,38) : ERROR: $param already declared as parameter

If $param = "" Then $param = "value"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

This issue is pretty much a show-stopper for 1.40. A large portion of my functions either modify a parameter ByRef (So it generates this error) or use a default parameter as demonstrated in the example. None of those can make it past syntax checking now.
Link to comment
Share on other sites

  • Developers

Thanks, you should add:

%HotKeySet 2 <UDF>

/ADD: I've included the .dat and an updated TextPad .syn file.

<{POST_SNAPBACK}>

Added it to both ...

Au3Check works fine for me as well....

Tnx

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Trouble with #include syntax...

It turns out that the syntax for #include is actually more flexible than documented in the help file. Both of the following actually work fine, but Au3Check thows errors:

#include "c:\folder\include.au3"
#include <c:\folder\include.au3>

Thanks,

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

The first is pretty minor.  This is legal AutoIt code:

Global Const $array[2] = [1, 2]
Just curious. What would that code do. :)

as far as i can remember I never saw code like that before.

I just tried this:

Dim $Array[3]
Global $array[2] = [1, 2]

and I got this error:

C:\WINDOWS\Desktop\r.au3 (2) : ==> No variable given for "Dim", "Local", "Global" or "Const" statement.:

Global $array[2]= [1, 2]

Global $array[2] ^ ERROR

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

Creates an array and assigns values to the array

Example:

Dim $Array[3]
Global $array[2] = [1, 2]
for $x=0 To UBound($array) -1
    MsgBox(0,$x,$array[$x])
Next

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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