User guide

Composer Pro User Guide
Copyright © 2011 Control4. All Rights Reserved.
200-00005 Composer Pro
User Guide Part 2
Page 131 of 179
74. Click the square of color to choose the color you want Button 4’s LED to be when Choral Music
plays. Choose the color in the menu that pops up (in this example: yellow), and click OK.
75. Drag the green arrow on top of the fourth blue question mark to make it a third subset of the
fourth conditional.
76. In Device Actions, select Programming Control.
77. In the Programming Control Actions, select the Stop radio button.
78. Drag the green arrow on top of the fourth blue question mark to make it a fourth subset of the
fourth conditional.
79. In Device Actions, select the Theater room.
80. In Theater Actions, select Media.
81. In the window that pops up, select Playlists, Moms Favorites, and then click OK.
Note: You do this is because the first time the button on the Keypad is pushed, the string variable
does not have a value, and nothing happens. This last command is created when none of the
conditionals are fulfilled, something will play; each time the button is pushed thereafter, a
conditional is fulfilled.
82. Drag the green arrow below the previous Stop command in the Script pane. It is not a subset of
the previous conditionals, but a command on its own.
83. In Device Actions, select My Playlists.
84. In the Commands tab under My Playlists, enter the name of the next playlist that youd like to
play; for example, Dad’s Favorites.
85. Drag the green arrow below the previous command in the Script pane.
86. In Device Actions, select the 6 Button Keypad in the Theater.
87. In 6 Button Keypad Actions, click on Button 4. Click the square of color to choose the color you
want Button 4’s LED to be when Mom’s Favorites plays. Choose the color in the menu that pops
up (in this example: green), and click OK.
88. Drag the green arrow below the previous command in the Script pane. You do not need a stop
at this point, because the programming automatically stops at the end of the script.
Results: Press Button 4 on a 6-Button Keypad repeatedly to toggle through four (4) playlists.
5.5.6 Examples: Programming with Agents
Use the Control4
®
Composer Pro Agents and Programming views to program agents.
5.5.6.1 Major Steps
When you program with agents, you typically use these general steps:
1. In Agents, define an instance of a type of agent.
2. In Programming, use the instance of the agent to program event actions.
Example: In the Agent view, you can create an instance of a Custom Button where you identify all the
buttons you want to program. In Programming, you program the Custom Buttons.