Included LUA scripts

This helpfile also contains the LUA manual and a copy of the Scintilla.iface that comes with SciTE and contains a list of all commands that SciTE Can handle.

We have included a couple of LUA scripts to show what they can do.

The LUA script file is located the SciTE program directory and is called AutoIt3.Lua.

Debugging LUA Script

  1. Add Debug msgbox - Ctrl+Shift+D

    This function will add a MSGBOX below the current line that contains the Var the cursor is at

    $a = $b + 1 (Put the cursor on $b and press Ctrl+Shift+D the following line will be added)

    MsgBox(4096,'debug:' & $b,$b) ;### Debug MSGBOX

  2. Add Debug ConsoleWrite message - Alt+D

    This function will add a ConsoleWrite line below the current line that contains the Var the cursor is at

    $a = $b + 1 (Put the cursor on $b and press Ctrl+Shift+D the following line will be added)

    ConsoleWrite('(4) :(' & @MIN & ':' & @SEC & ') $b' & $b & @lf) ;### Debug Console

  3. Comment ALL DEBUG MsgBox and ConsoleWrite lines: Alt+Shift+D
  4. UnComment ALL Debug MsgBoxes and ConsoleWrite lines: Ctrl+Alt+D
  5. Trace your Program Tools/Debug: Add TraceRemove lines
    This will add an ConsoleWrite for every code line which will show the program trace will executing.
  6. Remove ALL Debug MsgBoxes and ConsoleWrite lines Available under: Tools/Debug: Remove ALL lines