Sign in to follow this  
Followers 0
Xander

AU3check errors ... EVERYWHERE

7 posts in this topic

#1 ·  Posted (edited)

C:\Program Files\AutoIt3\Include\ie.au3(470,15) : ERROR: undefined macro.
                   If @error =
                   ~~~~~~~~~~^
   C:\Program Files\AutoIt3\Include\ie.au3(484,15) : ERROR: undefined macro.
                   If @error =
                   ~~~~~~~~~~^

(Oops, hit 'Enter' by accident and it submitted early)

I've got a lengthy script that I've been working on for ages. It's not perfect, could be more efficient, I'm sure, but definitely does not have 722 errors as AU3CHECK now has started telling me. It's finding errors in everything. Every closing parentheses, every ampersand, all over.

I've tried reinstalling (and updating) AutoIt but that hasn't changed anything. I suppose I could forego the use of Au3Check but it's nice for the odd time I forget to close an IF line or something.

Suggestions, please.

Edited by Xander

Share this post


Link to post
Share on other sites



Suggestions, please.

code please.


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Whenever I miss something it causes errors all the way down the page. CLosing an IF or closing a While... look at the first or last of your reported errors, they should be the culprit.

Share this post


Link to post
Share on other sites

code please.

Examples were provided in the first post. A script that was error-free on one day was error-full the next, with no notable changes (I fixed a typo in a message box text).

They're all "undeclared macros" or "undefined function". Most of them are in the 'include' files (ie3, process, guiconstants) but others have been perfectly fine up to now:

D:\My Documents\My AU3 Scripts\HousecallsMaintenance.au3(853,51) : ERROR: Int(): undefined function.
        $sizeweb = Int(InetGetSize($site & $name) / 1024)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\My Documents\My AU3 Scripts\HousecallsMaintenance.au3(885,79) : ERROR: IniRead(): undefined function.
        $webYY = IniRead(@TempDir & "\LastHMupdate.txt", "Last98update", "year", "")
[i]    [u]NOTE:[/u] it has no problem with the next line:[/i]
        $webMM = IniRead(@TempDir & "\LastHMupdate.txt", "Last98update", "month", "") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Maintenance.au3(1014,37) : ERROR: Ping(): undefined function.
        $ping = Ping("www.google.com", 250)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

For comparison, if I do a SyntaxCheckBeta, it's fine.

Additional: I played a hunch and deleted the AutoIt directory, and reinstalled. Whatever file Au3Check uses as a source must've been corrupted. Compiles without error now.

(Hmmm, but have lost my beta options in SciTE. )

Share this post


Link to post
Share on other sites

(Hmmm, but have lost my beta options in SciTE. )

Sounds to me you are using SciTE lite that comes with the AutoIt3 installer and are not using the SciTE4AutoIt3 version..

Details in my sig...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You're probably missing a closing bracket. Usually if you miss a closing ")", the whole script is covered with errors, so look it over once or twice!

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

Ahh, quite right. I keep an 'install' directory of these things and had forgotten about the AutoIt version.

For the record, the "wrapper" is the best part of it all. I couldn't script without it.

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  
Followers 0