The eccoMAGIC Forums
http://forums.eccoMAGIC.com/forum/YaBB.pl
the SLANG EXTENSION and Guest Programming >> Slang Rules Scripts, Functions, Examples and HOW TO >> How to create a button that will start a lua function
http://forums.eccoMAGIC.com/forum/YaBB.pl?num=1233504579

Message started by Admin on 02/01/09 at 10:09:39

Title: How to create a button that will start a lua function
Post by Admin on 02/01/09 at 10:09:39


rbrandes1 explains
Quote:
Re: A button to run a lua script

1. Create a text file in your Ecco directory called luacmd.lua

2. Add a script to it. For example:
function test()
msgbox("Test")
end

3. In Ecco, create a new Launchable tool. Call it whatever you want,
and for the command enter: LUAscript:test() (everything else default)

4. Execute the new Tool from the menu.

5. Left-click Drag the new button (upper right corner) to a location
on your menu

6. Click the new button to execute the same script at any time.

--- In ecco_pro@yahoogroups.com, Tim Young <Tim.Young@...> wrote:
>
> Hi there,
> I have been unable to create a button that will start a lua function.
> From the docs, this seems quite simple to do. If I can get it to
> "launch", I can drag the button showing the last action onto the
> button-bar. But I cannot get a lua script to launch...
>
> For what it is worth, I have ecco-pro 4.01 installed, and have eccoext
> 4.0.0.3.
>
> - Tim Young
>


The eccoMAGIC Forums » Powered by YaBB 2.1!
YaBB © 2000-2005. All Rights Reserved.