Welcome, Guest. Please Login or Register.
eccoMAGIC Forums
07/21/24 at 20:01:12
News: "Breathtaking" (Check out the new MagicView release at EccoTools.com)
Home Help Search Login Register


Pages: 1
Send Topic Print
  Rating
Rate:
Rating:
Rating: 10.00
Votes: 1

5
4
3
2
1










1

5
4
3
2
1


1


2


3


4


5


6


7


8


9


10

How to create a button that will start a lua function (Popularity: 3448 )
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post How to create a button that will start a lua function
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
>

Back to top
 
 

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print