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

Login:
Pass:
 
 

Topic:
Text based on variable state
This thread has 4 replies. Displaying all posts.
Post 1 made on Saturday January 11, 2014 at 22:26
tinsnow
Long Time Member
Joined:
Posts:
February 2013
131
A remote button text can be changed based on a state of a variable? (E.g: if tv is ON for an activity, show text as "TV is ON") and (If tv is off is second activity, the text shows "TV is OFF")

Can anyone let me know how to do this. In a mx-890 where we have true/false.


DuctTape mentioned another comment "the issue with that, is that if you are using true/false variables to change the graphical state of a button, you won't be able to use the fix there."
Post 2 made on Saturday January 11, 2014 at 23:42
goldenzrule
Loyal Member
Joined:
Posts:
July 2007
8,470
Assuming you have already programmed with basic variable and know how to create a variable, i'll skip to the setting of a text variable.

When you create the If/Else, set it to true. In my example, I added my system off macro under IF and then set the variable state to FALSE. So, lets say I create a power off button that shows the status of the power for zone 2. When I enter a zone 2 source, I will set each to variable = true in the source macro. This will ensure that that button will show the zone is on.

Now in the properties window, at the top, select the variable you created. The normal text and normal image properties will be viewed when the variable is set to False. The pressed text and pressed image will be viewed when the variable is set to True

Last edited by goldenzrule on January 12, 2014 00:27.
Post 3 made on Sunday January 12, 2014 at 00:04
goldenzrule
Loyal Member
Joined:
Posts:
July 2007
8,470
Sorry, had to wait for Photobucket to upload these. Was too lazy to do screen captures so just used my phone:


This is how the variable looks:


This is how you set it up in the properties


[Link: dropbox.com]

This is the result
[Link: dropbox.com]

This was just a basic one I did to show how it would be set up and work. I am sure others, Duct Tape especially can offer some better suggestions on uses. I don't use variables all that much to be honest, but you can do some pretty amazing things with them if you spend a little time getting to know how you can make them work for you.

Note, I put the Variable False button in there just so i could do a quick variable reset back to false to show it without having the screen jump to the main menu (I put my system off macro minus delays to shorten it for the picture under the ELSE statement as you can see which jumps the remote back to the main menu)

Last edited by goldenzrule on January 29, 2017 10:28.
OP | Post 4 made on Saturday January 18, 2014 at 03:41
tinsnow
Long Time Member
Joined:
Posts:
February 2013
131
wow. thanks a lot goldenzrule. This is an amazing tutorial
Post 5 made on Saturday January 18, 2014 at 14:50
goldenzrule
Loyal Member
Joined:
Posts:
July 2007
8,470
On January 18, 2014 at 03:41, tinsnow said...
wow. thanks a lot goldenzrule. This is an amazing tutorial

Your welcome. You can make some slick buttons using this method. I cannot tell you how many systems I have seen where the zone 2 is left on on an AVR. This method would greatly help with this as customers would see that the button is green, therefore the zone 2 is still on.


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