Powerd by LUA Welcome to LuaScript


LuaScript is an Active Scripting Engine for the Lua language.

LuaScript supports all of the documented Active Script Engine functions including Active Script Debugging and Colour syntax highlighting

LuaScript is based on the programming language LUA. For more information about LUA, visit the LUA website

LuaScript implements several extensions to LUA to support Automation objects.

These extensions come in two forms Built-in extensions and additional Global functions that can be called.

Built-in extensions

LuaScript extends the standard Lua '.' notation to include navigation of Automation properties and values. LuaScript also uses the ':' notation to call member functions of an Automation object. Most scripting hosts provide a default Automation object that provides the Automation interfaces that the scripting host provides. This is accessed through the global 'external' variable. For example the following Lua code gets the value of a property called value of an object text1 performs a function Func on it and stores the result of the function in the value property of the text2 object.

external.text2.value = Func( external.text1.value)

The following code calls the Automation function CallIn of the host-provided default dispatch object. Optional parameters param can be specified in the call.

external:Callin([param[,param...]])

Global Functions

Additional Debugging facilities

Built in, there is a debugging enhancement that allows local variables, global variables and functions to be inspected. This is via a built in Lua C-Function called 'StackDialog()'.


Download LuaScript

Click here to download the LuaScript installation program

After download, further examples of LuaScript can be found in the installation subdirectory

This page was last updated on 13th October 2002.