Tropical Technologies Community :: Articles
Categories

Articles on Lua Scripting using the Lua Script plugin for Samurize.
Although Lua can be used as a stand-alone language, Lua is a powerful light-weight programming language designed for extending applications. So it fits extremely well into being a plugin for samurize.
The Lua Script plugin does not only allow simple scripts to run in samurize, it also contains a lot of libraries and extension modules. String and table editing functions are available as well as modules for MySQL access, HTTP and FTP up- and downloads, XML parser, registry access and regular expressions. Extensions made by other people can be easily installed just by copying the .dll file into the samurize directory.
Although Lua can be used as a stand-alone language, Lua is a powerful light-weight programming language designed for extending applications. So it fits extremely well into being a plugin for samurize.
The Lua Script plugin does not only allow simple scripts to run in samurize, it also contains a lot of libraries and extension modules. String and table editing functions are available as well as modules for MySQL access, HTTP and FTP up- and downloads, XML parser, registry access and regular expressions. Extensions made by other people can be easily installed just by copying the .dll file into the samurize directory.
The lua script plugin supports multithreading. Essentially that means it can run in the background without disturbing the samurize client it is running in. Using this feature is extremely simple.
This article shows two internet access scripts, one for downloading html files and one for MySql access.
This article describes how to read the contents of a text file - both raw (line by line) and xml-formatted.
Setting up the lua script plugin works like every plugin in samurize. This, and the options available in the config dialog, is explained here.
This article describes the easiest scripts that show basic functionality of the plugin.
Lua scripting is very easy to learn. This article (and the following articles) will introduce you to the Lua language and the interfaces available in the samurize plugin.
