User guide
Composer Pro User Guide
Copyright © 2011 Control4. All Rights Reserved.
Saved: 4/14/2011 4:10:00 PM
200-00005 Composer Pro
User Guide Part 2
Page 96 of 179
14. Click Execute in the Script pane to turn on the sprinklers.
15. Click Execute again to turn off the sprinklers.
Results: The Top Button of the 3-Button Keypad now toggles the Sprinklers on and off.
5.5.2.1 Programming with Delay, Stop and Break Commands
Control4
®
Composer Pro programming provides a Delay command in response to an event that waits
for a specified amount of time before executing the next command in a code sequence. See
“Programming with a While Statement” for one example; another example is listed below.
When programming a device, you always have the following options:
• Delay—Lets you delay an action from taking place (available in previous versions).
• Stop—Lets you stop all programming.
• Break—Lets you break out of a ‘While’ or loop or 'If' statement when a specified condition is
met and returns to the programming outside of the loop.
Note: Break commands do not break out of a conditional. See “Programming with Conditionals” for
details.
5.5.2.1.1 Delay Command
To use the Delay command during programming, see this example using a Motorized Screen and a
DVD player:
1. Start Composer and connect to a Director.
2. Click Programming.
3. Select the Motorized Screen in the project tree.
4. Select the event When the Motorized Screen is put down. Notice the string that appears in the
Script pane.










