Tutorial

Getting Started with Macros

Macro Editor

User Interface

Editing Macro Statements

Expression Editor

How To

Using variables

Finding and modifying objects

Creating new page content

Asking for user input

Sorting objects

Macro Logging

Sample Macros

Concepts

Expressions

Objects

Properties

Variables

Data Types

Arrays

Functions

Literals

Operators

Comments

Editing Macro Statements

Inserting, Removing and Moving Macro Statements

Macro Editor has a set of statement buttons and a large pane that contains the contents of the current macro. You can use the statement buttons (Alt+1 to Alt+8) to insert new statements to the macro and use Delete key to remove them from the macro. You can also use the up/down buttons on the right to move the statements up and down as well as in an out of parent statements. The statements can be collapsed/expanded using the little arrows to the left of them.

Editing Individual Statements

Each statement has one or more editable parts. To edit them click on those parts or use the keyboard shortcuts explained below. Below image shows the editable parts of the statement in red rectangles.

Editable areas in statements

Keyboard Shortcuts

Most statements contain a single expression which can be edited by pressing the Enter key. ForEach statement consists of a loop variable and a array expression. The loop variable can be edited by the Enter key while the array expression can be edited by Ctrl+Enter key. There are some other keyboard shortcuts for various operations:

Shortcut Action
1 to 8 Insert statement
Enter Edit the expression in the selected statement or the loop variable of the selected ForEach statement
Ctrl+Enter Edit the array expression of the selected ForEach statement
Ctrl+Up Move selected statement up
Ctrl+Down Move selected statement down
Left Arrow Collapse selected statement
Right Arrow Expand selected statement
Delete Delete the selected statement

Reference

Statements

ForEach

If

Else

While

Expression

Comment

Break

Continue

Hierarchy Objects

NotebookRoot

Notebook

SectionGroup

Section

Page

Page Objects

Title

Outline

Table

Column

Row

Cell

Paragraph

Text

Image

EmbeddedFile

Tag

Other Objects

DialogBox

Functions

Array Functions

Date/Time Functions

Dialog Box Functions

Macro Execution Functions

Object Functions

String Functions