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:
Variable question for MX-980?
This thread has 9 replies. Displaying all posts.
Post 1 made on Monday January 17, 2011 at 23:10
Robert_TX
Long Time Member
Joined:
Posts:
January 2011
10
I picked up a MX-980 and I have been learning the CCP software. I think I get most of it, but I do have one question...

I understand how variables work in general. It is clear how to use them in macros within IF statements and setting them on/off. What I don't understand is there is a "Variable" field in the property window for each button. What is the purpose of this field in the property window and how does it differ from using variables in macros?

Thanks
Robert
Post 2 made on Tuesday January 18, 2011 at 02:30
Audiophiliac
Super Member
Joined:
Posts:
August 2006
3,311
It allows you to set the state of a variable. Normally, you would do this in the macro window. URC probably sees it as a shortcut. :)
"When I eat, it is the food that is scared." - Ron Swanson
Post 3 made on Tuesday January 18, 2011 at 11:36
jbworks
Long Time Member
Joined:
Posts:
January 2010
134
On January 18, 2011 at 02:30, Audiophiliac said...
It allows you to set the state of a variable. Normally, you would do this in the macro window. URC probably sees it as a shortcut. :)

How do you set the state of a variable from the variable dropdown list of a buttons property? Just curious.

On January 17, 2011 at 23:10, Robert_TX said...
What I don't understand is there is a "Variable" field in the property window for each button. What is the purpose of this field in the property window and how does it differ from using variables in macros?

Being able to assign a button to a variable allows someone to show or hide buttons that are stacked on each other as well as change the displayed text. Very handy for making a remote feel more dynamic.
[Link: jbworks.com]
OP | Post 4 made on Tuesday January 18, 2011 at 12:11
Robert_TX
Long Time Member
Joined:
Posts:
January 2011
10
Interesting... let me try to follow what you are saying with an example. Say I have a button called "Display" on one of my TV pages. For this button, in the property window I create a variable called "TV Display" and then select that in the drop down list.

My guess is URC is doing one of two things with that variable....

1. It only displays that button if the variable is set to true?

2. Pressing the button toggles the state of the variable?

Thoughts?

Robert
Post 5 made on Thursday January 2, 2014 at 17:31
remotivate
Long Time Member
Joined:
Posts:
August 2011
37
Robert, did you ever discover the answer to your question here? I've been searching for the very same understanding and found this thread, but without a firm answer. I too am using a few Variables at this point succesfully, but would like to know about using the "Variable" field in the property window for a button itself. What exactly is that used for?
Post 6 made on Thursday January 2, 2014 at 17:42
Duct Tape
Loyal Member
Joined:
Posts:
November 2008
5,298
the variable field lets you change the button graphic based on the variable you assign it to.

if you look at the button properties window, you will see that there is a normal and pressed state for both the text and the image itself.

when the variable is true, it displays the pressed state of the image and text.
[Link: facebook.com]
Post 7 made on Thursday January 2, 2014 at 18:45
remotivate
Long Time Member
Joined:
Posts:
August 2011
37
On January 2, 2014 at 17:42, Duct Tape said...
the variable field lets you change the button graphic based on the variable you assign it to.

if you look at the button properties window, you will see that there is a normal and pressed state for both the text and the image itself.

when the variable is true, it displays the pressed state of the image and text.

Okay, I'm probably being dumb, but how is this different than using the Text command down in the actual Macro instructions area? For instance, I have an If/Else statement that uses a Variable for determining the Power Status of a device that provides status commands via RS-232 thru my MRX-2. The query for status is sent to the device, the device responds with a certain string if it is indeed turned On. Based on that response, I then use the Text field to display the words "Power Is On" in bright green letters on the button that is normally called "Power Status". I then have a Delay to display that for a good 6 seconds. Then it goes back to being called "Power Status" again. (it of course does the Power is Off in Red letters if the On string is not returned). In this specific use case, how would the button choice at the top of "Variable" really help me? Would it for instance change the Button permanently? that would be strange, but interesting. Actually, stop the presses, I just tried it and it looks like the "pressed" text is available to you, but only stays there as long as the button is pressed, which is like 2 seconds. I believe this could be useful, but how is that any better/more flexible than my use of the Text command in the macro and then the nice delay of 6 seconds to ensure the user has plenty of time to see the visual display of the button?

Thanks again!
Post 8 made on Thursday January 2, 2014 at 19:41
Duct Tape
Loyal Member
Joined:
Posts:
November 2008
5,298
Because if you get creative using transparent buttons, you can have a single button show many different states based on variables.
[Link: facebook.com]
Post 9 made on Thursday January 2, 2014 at 19:53
remotivate
Long Time Member
Joined:
Posts:
August 2011
37
On January 2, 2014 at 19:41, Duct Tape said...
Because if you get creative using transparent buttons, you can have a single button show many different states based on variables.

Ahhh, interesting. I'll have to think about that for a while. Thanks!
Post 10 made on Wednesday January 8, 2014 at 01:19
CI256
Long Time Member
Joined:
Posts:
December 2012
59
Oops. Posted in the wrong thread.


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