Jump to content

syntax error that isn't


Recommended Posts

Hi,

I'm using SciTE as an editor for AutoIt - when I try the syntax checker on this test script...

#Include <Constants.au3>

#NoTrayIcon

Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown.

$exititem = TrayCreateItem("Exit")

TraySetIcon("warning")

TraySetToolTip("SOS")

TraySetState() ; Show the tray icon

$toggle = 0

While 1

$msg = TrayGetMsg()

Select

Case $msg = 0

Sleep(1000)

If $toggle = 0 Then

TraySetState() ; Show the tray icon

$toggle = 1

Else

TraySetState(2) ; Hide the tray icon

$toggle = 0

EndIF

Case $msg = $exititem

ExitLoop

EndSelect

WEnd

Exit

...the syntax checker reports

C:\utils\autoit\auto it scripts\TraySetState Example.au3(1,10) : ERROR: can't open include file <Constants.au3>

#Include <Constants.au3>

~~~~~~~~~^

I've got Au3Check.exe version 1.54.9.0 in c:\program files\autoit3, and in c:\program files\autoit3\SciTe\Au3Check - older versions came up with lots of errors!

Any idea how I can stop this reporting syntax errors that aren't there?

Cheers

Link to comment
Share on other sites

  • Developers

Couple of questions:

Have you done a standard install of both AutoIt3 and SciTE4AutoIt3 ?

Could you show the the exact info that is shown in the SciTE outputpane when you run the script ?

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

Couple of questions:

Have you done a standard install of both AutoIt3 and SciTE4AutoIt3 ?

Could you show the the exact info that is shown in the SciTE outputpane when you run the script ?

Aha! - that was the problem, I hadn't installed SciTe4AutoIt3, I was running with an old version of SciTe.

Thanks for the help. <_<

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