Your Universal Remote Control Center
RemoteCentral.com
RTI Control Systems Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
TV ON/Off Toggle and a Flag
This thread has 6 replies. Displaying all posts.
Post 1 made on Sunday October 18, 2009 at 16:18
winesmile
Active Member
Joined:
Posts:
August 2007
580
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?

Thanks!
Post 2 made on Sunday October 18, 2009 at 16:23
jesterselv
Long Time Member
Joined:
Posts:
August 2009
288
yes, an On button and an Off button. each with flag set or clear. or create a "Toggle" button, with the same flag set or clear logic.
"Those who sacrifice liberty For security deserve neither." - Benjamin Franklin
Post 3 made on Monday October 19, 2009 at 00:23
HiFidel
Long Time Member
Joined:
Posts:
July 2005
165
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.
OP | Post 4 made on Tuesday October 20, 2009 at 21:42
winesmile
Active Member
Joined:
Posts:
August 2007
580
On October 18, 2009 at 16:23, jesterselv said...
yes, an On button and an Off button. each with flag set or clear. or create a "Toggle" button, with the same flag set or clear logic.

Thanks Jester - can you elaberate on the toggle option?
Post 5 made on Wednesday October 21, 2009 at 07:27
jimstolz76
Loyal Member
Joined:
Posts:
December 2007
5,607
On October 20, 2009 at 21:42, winesmile said...
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.
OP | Post 6 made on Thursday October 22, 2009 at 01:21
winesmile
Active Member
Joined:
Posts:
August 2007
580
I didn't see that toggle command!

Could you write an example?  What comes up for me is:

Toggle - TV Power Status ON
Pioneer-Plasma-ON
Post 7 made on Monday October 26, 2009 at 00:04
HiFidel
Long Time Member
Joined:
Posts:
July 2005
165
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.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

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.

Hosting Services by ipHouse