
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 Discrete “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.
61
Type in Section Title
M
X
5
0
0
0
T
W
O
W
A
Y
T
O
U
C
H
S
C
R
E
E
N
Advanced Programming Techniques
Kommentare zu diesen Handbüchern