stuka Posted April 19, 2007 Share Posted April 19, 2007 It is sometime inevitable to miss or miscode certain codes even if we're new or veteran users of AutoIt. Is there a user-friendly tool to scan through the script to check for mistakes? That would be cool. Link to comment Share on other sites More sharing options...
therks Posted April 19, 2007 Share Posted April 19, 2007 I'm guessing you don't use SciTE4AutoIt3? It comes prebuilt with a command for running scripts that uses the Au3Check.exe before actually sending your script to the AutoIt3.exe. If you look in your AutoIt directory, you'll find the Au3Check.exe, it's a command line program, but it does what you're looking for.AutoIt3 Syntax Checker v1.54 Copyright (c) Tylo 2006 Usage: Au3Check [-q] [-d] [-u file] [-w[-] n].. [-v[-] n].. [-I dir].. file.au3 -q : quiet (only error/warn output) -d : as Opt("MustDeclareVars", 1) -I dir : additional directories for searching include files -w 1 : already included file (on) -w 2 : missing #comments-end (on) -w 3 : already declared var (off) -w 4 : local var used in global scope (off) -w 5 : local var declared but not used (off) -w 6 : warn when using Dim (off) -v 1 : show include paths/files (off) -v 2 : show lexer tokens (off) -v 3 : show unreferenced UDFs and global variables (off) Exit codes: 0 : success - no errors or warnings 1 : warning(s) only 2 : syntax error(s) 3 : usage or input error My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Zedna Posted April 19, 2007 Share Posted April 19, 2007 (edited) Use Scite4Autoit3 as editor.There is automatic script control before run/compile. It can be invoked also directly by Ctrl+F5It's AU3Check.EDIT: Saunders was quicker Edited April 19, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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