Lua - Zeus documentation

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
E Programmer
Posts: 38
Joined: Thu Apr 07, 2005 7:07 pm

Lua - Zeus documentation

Post by E Programmer »

I am trying to write a LUA macro for Zeus. I have been using the built in macros and have had some luck by modifing macros.

A lot of the macros use functions like
Get_marked_top
Is_marked
MoveLineEnd
Backspace

These don't seem to be LUA functions but built in functions for ZEUS
Where is there a list of these functions?
I want one that moves the cursor forward n characters
It may be cursorRight or ArrowRight or Cursor_Right but documentation would be easier than guessing, guessing, and guessing.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

There are three types of macro scripting functions:
  1. Zeus built-in macro functions (these take one or more characters as inputs and have _'s in their name)
  2. Zeus keyboard functions (these always take no parameters)
  3. Any other macro function which must be a function prived by the scripting language itself or a function written by the user.
To get help for the first two types of functions create a new document and paste this text into the document:

Code: Select all

To get help 
Get_marked_top 
Is_marked 
MoveLineEnd 
Backspace
BackspaceEx
Now place the cursor on any of these words and use the Help, Quick Help menu to display the help for the function selected.

For the third type of function you need to refer to scripting language specific documentation. For example the Macros menu has a link to the Lua documentation web page.

Jussi
PS: It turn out there is small bug in the Zeus online help since there is no help fro the Backspace item :( But I guess you could have worked out what this function is meant to do :)
Post Reply