Xander Posted January 4, 2007 Share Posted January 4, 2007 (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 January 4, 2007 by Xander Link to comment Share on other sites More sharing options...
/dev/null Posted January 4, 2007 Share Posted January 4, 2007 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 More sharing options...
Eliah Posted January 4, 2007 Share Posted January 4, 2007 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. Link to comment Share on other sites More sharing options...
Xander Posted January 4, 2007 Author Share Posted January 4, 2007 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 More sharing options...
Developers Jos Posted January 4, 2007 Developers Share Posted January 4, 2007 (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 More sharing options...
_Kurt Posted January 4, 2007 Share Posted January 4, 2007 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.. Link to comment Share on other sites More sharing options...
Xander Posted January 4, 2007 Author Share Posted January 4, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now