Jump to content

AU3check errors ... EVERYWHERE


 Share

Recommended Posts

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

Link to comment
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. )

Link to comment
Share on other sites

  • Developers

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

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

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