The Macros tab in the Kramer Control Builder enables the designer to create the necessary control macros in one place, then reference those macros throughout the controlled space. When designing multiple interface types within a single controlled space, there is bound to be redundancy in many areas including control macros. Instead of recreating the macro within each user interface, create the macros in the Macros tab and then add the macro to the different interfaces.
This article explains how to design a macro as well as how to add the macro to an interface element.

Adding a New Macro

  1. Create a user interface and launch into Builder
  2. Click the Macros tab in the left pane.
  3. Click the three vertical dots.
  4. Select the Add macro option.
    A popup window opens, asking you to name your macro.
  5. Type a unique name for the macro to help identify what the macro does.
  6. Click Complete.
    The popup window closes and the Macro Configuring screen appears in the center pane of the Builder.

Adding an Action/Capability to the Macro

The Actions section of the Macro Configuring screen is where you design the macro sequence of actions. This includes adding the necessary Actions/Capabilities from your device drivers to create single-press activity launching.

The instructions below show how to create a Power On macro to turn on a system and switch sources to Apple TV.

  1. Click the Devices tab in the right pane.
  2. Expand the location of your device (This Space or Device Reference).
    For information on devices and device references click here
  3. Click the name of your device.
  4. Select the category of the required command.
    For this example, select the Power category.
  5. Drag your Capability to the center pane.
    In this example, drag the Set Power command.
  6. A popup window appears.
    The content of this window is different for different devices. The image below shows an Onkyo A/V Receiver that includes the following Capability parameters:
    • Power – the name of the Capability
    • Power State – state of the device after executing the above Capability
    • Power Zone – the zone that is being controlled (Main Zone = Zone 1)
  7. Define the parameters as required and click Submit.
    The popup window closes and the Actions section shows the Execute Command line information from the added Capability.
  8. Repeat the prior steps for each command in your macro sequence.

Once the macro is completed, a series of Capabilities is displayed (see the image below).

Adding Elements to the Macro

Click the ‘ + ‘ Icon in the Macro toolbar (in the center pane) to add one of the following to the macro:

  • Command – enables defining a placeholder for adding an Action/Capability from your controlled device (see the procedure above).
  • Conditional – adds an IF statement to your Macro. Using IF THEN programming, you can embed logic into your macro.
    • More information about Conditional programming is found here.
  • Delay – creates a pause between Capabilities, the length of which can be defined.
    • To edit the delay time, type the required time in seconds (a half second is typed as 0.5) in the Properties section of the center pane.
  • Execute Macro – enables the designer to embed and execute a macro within a macro.
    • To add an embedded macro, select the main macro in the Properties section of the center pane and select the macro to embed from the drop down list.

Moving an Item Within the Macro

To move an action to a different position within the Macro, drag the relevant action and drop it in the new position.

Macro References

Under the macro Actions section of the center pane, you will find the Reference section. The Reference section lists every place within the User Interface that this macro is being used.
The identifying information is displayed in the following way (see the image below): Space/Interface/Page/Button

Adding a Macro to a Button

  1. Select the UI tab from the left pane.
  2. Add a button in the center pane.
  3. In the left pane, select the Macros tab.
  4. Drag the name of the relevant macro from the left pane to the button in the center pane.
  5. Double-click the button to see the New Execute Macro within the Actions section.

Revision: 20
Last modified: Jul 05, 2018

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment