Wanted to show you guys a quick and small example and got into a full blow 8 bit character editor, upgrade to Livecode 6.5 and it all broke.
Luckily a directory of old versions are maintained at
downloads.livecode.com/livecode/Here's a quick tutorial.
Download Livecode. Install Livecode. Start Livecode.
There's a horizontal main program window and a vertical tools window.
From the main program window choose
"Message Box". on the bottom left.
A new window appears called "Message Box".
There's a button bar, then an input field, and finally an output in the default view.
The input field should grab focus, if not give it a click.
Type some of these things to see how the "Message Box" console can help you.
beep --check to see if the computer is alive
ask "your name" if it is not empty then put "Hello " & it -- Interactivity!
-- Note
PUT statement is used everywhere.
-- x=a is illegal. Its
PUT value INTO container put 1 & comma & 2 & cr & quote & 3 & quote -- note cr is a carriage return
put folders()-- folders of the current path
set the folder to specialFolderPath("Documents") put files()In the default view input of multiple commands flows on a single line with spaces or semi-colons.
The second button at the top left of the Message Box console window opens a
multiline input window which activates its script by pressing the number pad enter key.
A complete list of the internal commands of the software can be listed.
put the commandNamesas well as all of the internal globals
put globals()Of course you could always click the
Dictionary link in the main window to get detailed information about all those things.
You could also use the menus in the main window for all kinds of tricks, but for now lets script.
Make the message box wider and type (or leave it and paste this monster in).
create stack "my first stack" create button set the label of it to "beep" set the script of it to "on mousedown" & cr & "beep" &cr & "end mousedown"
You should have a new stack named "my first stack" and when you click on it (with the solid black "browse tool" selected), your stack should give a little beep.
Right click over your new
stack window and choose
"Edit Stack Script" and behold the fancy
editor and the script created by the big one line command above.
Now what? feeling artistic? you'll find vector and raster paint and drawing tools at the bottom of the
Tools Palette.Go ahead and scribble around with some of those tools.
Or maybe you want to design an application full of
fields, tabbed
groups,
menus,
scrollbars and widgets?
Well they are in there for you to drag and drop into your project.
Note that holding
Control and
Option and clicking on your project objects will open their script to edit.