... Software for the people!
Become a member of Tropical Technologies Community, right now!
Search
Main Menu
Login
Username:

Password:

remember me

Lost Password?

Register now!
Recent Downloads
Shell Object Edito...
(Software, Mon, 18-May-2009)
TimeCube
(Software, Sat, 15-Nov-2008)
SciTE 1.76 plus Sh...
(Software, Sat, 05-Apr-2008)
Hotkey Plugin SDK
(QCD Plugins, Sun, 29-Oct-2006)
Hotkey Plugin
(QCD Plugins, Sun, 29-Oct-2006)
Transparent Image
(Samurize, Sat, 13-May-2006)
Lua Script (beta 6...
(Samurize, Fri, 03-Mar-2006)
Samurize Universal...
(Samurize, Tue, 24-Jan-2006)
Line Input Plugin
(QCD Plugins, Sun, 08-Jan-2006)
Custom Progress
(Samurize, Sun, 13-Mar-2005)
The easiest scripts
Submitter: Tropics Date: 2006/2/18 0:32 Views: 256
Summary: This article describes the easiest scripts that show basic functionality of the plugin.
Keywords: lua ampi samurize

Hello World
All the scripts in this article are distributed together with the lua script plugin. You have to check the example scripts box in the installer to get them installed.

Hint: Put all scripts in the samurize/scripts directory! That way, they are easy to select in the options dialog.
Note that lua is case sensitive. So the samurize & ampi functions do only work exactly as they are printed, for example.

In every language the famous "Hello World" program is the most simple one. It just prints those few letters.

-- hello world

return "hello world"


No initialization script needed, leave that field empty. No libraries needed.

Every line beginning with "--" is a comment. You can use it to make the code more readable - for users and for yourself!
Pages: (1) 2 3 4 5 »
URL: http://www.tropictech.de/modules/article/view.article.php?c1/7
Rate
10987654321