Programming 32
Macros
Macro programming
The interaction between the different devices connected to ML Gateway is defined by means of macros. A macro consists of a set of events and a
list of commands.
Whenever any of the events defined in a macro occurs (for example, a key press on a keypad, or a Control command on Beo5), the macro is
triggered. This means that all the commands in that macro will be executed in order.
To define a new macro:
- Select
Programming
-
Macros
.
- Click the
Add macro
button appering on the macro list.
- Define a name for the new macro and click
Update name.
Copying macro definitions
A complete macro can be duplicated using the
Clone
button. This will make an exact new copy of a macro.
Also, selected events or commands can be copied from one macro to another. Select a group of events or commands using the check boxes, and
use the
Copy
buttons. These copied events or commands can later be pasted into another macro.
Copied events and commands are stored independently, so you can copy both events and commands and then paste them into another macro.
! ML Gateway does not support inserting events or commands in existing lists.
Workaround:
1 Add the missing command to the end of the command list.
2 Select the commands between the added commands and the wanted insertion point.
3 Copy, Remove and Paste the commands.
Orphan commands and events
If commands and events are already defined for a resource, and that resource is modified to another address, the events and commands become
orphan (without an associated resource).
Orphan events or commands still works, and refers to the original addressing of the resource.
The macro screen signals the presence of orphan commands or events, and a report is available listing them all.