
9 Use the existing IR Power command and the new variable you just created to build the IF / Else
statement: If, the <Cable TV Power On> is FALSE (Which means the Cable Box is turned Off) , issue
the Cable TV Power IR command to turn it On, Else, do nothing
(Leave the Else section blank).
Then add the Cable TV On variable as another macro step and change the state to True, (Because
the Cable Box has been turned On).
Now let’s set up the Cable Box Power Off button.
10 Click on the Cable Box Power Off button.
11 In the Macro window, click on the IF/ELSE icon.
12 Use the existing IR Power command and the new variable you just created to build the IF / Else
statement: If, the <Cable TV Power On> is True, (Which means the Cable Box is turned On) , issue
the Cable TV Power IR command to turn it Off, Else, do nothing
(Leave the Else section blank).
Then add the Cable TV On variable as another macro step and change the state to False,
(Because the Cable Box has been turned Off).
You’ve essentially created a discreet Power On and Power Off buttons for the Cable Box that track their
state. Program all buttons you want to turn the Cable Box on, with the Cable Power On button. Program
the System Off button to turn the Cable box off with the Cable Power Off button.
29
Complete Control Mobile Programming Manual for MX-iOS
U
S
I
N
G
C
C
P
E
D
I
T
O
R
T
O
P
R
O
G
R
A
M
Comentarios a estos manuales