I have flags set for my TV and AVR and it works great!
On my Apple TV (seems I'm always asking programming questions related to that damn Apple TV!) I have created an "On/Off" button so that when listening to music you can turn the TV off and then On again if you want to change something or move to a different playlist, etc.
Problem is that it screws up my flag system... Not sure of a workaround. Would it be to just create seporate on and off buttons?
If you're using a flag to track the status of anything, make sure the flag is included in any aspect of the programming that can cause that state to change, which may be outside the all on/all off macros.
Thanks Jester - can you elaberate on the toggle option?
Use the toggle bit command in the drop down menu. Then you can drag in Power On and Power Off and it will toggle between the two on each button press. So a single button with two discrete codes will act like a toggle "Power" button.
The intended purpose of the Toggle IR item is for things like the Windows Media Center IR receiver that requires an alternate version of each command if you need to send the same command twice (ie: down and down again). If you look at the current RTI library under "Microsoft>Windows Media Center>MCE (Toggle Bit)" you'll see there's an alternate version of every command.
Anyway the problem with using the toggle IR item is that if you press any other button after pressing your toggle power button, the first code in the Toggle IR brackets is the one that gets sent, so you might end up sending on twice, confusing the customer. The way to do it so it toggles between two different commands (or macros or whatever) is to use a flag test with a toggle flag below:
If flag "TV on" is set then (IR TV OFF) Else (IR TV ON) Toggle flag "TV on"
If "TV on" is used within your on/off macros, this macro above will work well in conjunction with them.
Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.