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:
Any way to dynamically display/hide button using variables??
This thread has 9 replies. Displaying all posts.
Post 1 made on Wednesday January 3, 2007 at 13:22
Mike Garzione
Founding Member
Joined:
Posts:
September 2001
63
Is there a way to dynamically display and hide buttons based on the value of a variable? Here's my scenario: I have a "room" page that lets the user select what room they're in by choosing "media", "family", "bedroom". Each button sets a corresponding variable to 1 and the other two to 0. On some pages I'd like to have a particular button be different, depending on which of the rooms has been chosen: essentially, 3 buttons all in the same place, but only one of which will be active and visible, depending on the value of the variables.
Post 2 made on Wednesday January 3, 2007 at 14:26
KCThirstyEar
Active Member
Joined:
Posts:
January 2003
551
Well, on a 3000, you can use the "Press" state of a button with variables, so you could just not have a press state, and make it dissapear that way. I'm not sure there's a way to make the button dissapear per se on a 950, but you could use variables to make every subsequent press after the initial not do anything.

Using the method described for the 3000, you could "Stack" 3 buttons, when you press one button have it switch It's own Variable to 1 (the invisible state) and set whatever button you want to replace it to to 0 state (Visible State). Hopefully that makes sense. (and works)
KC
Audio Artisans
Post 3 made on Wednesday January 3, 2007 at 15:18
GregoriusM
RC Consultant
Joined:
Posts:
December 1999
9,809
Search for the user Darnitol, who is now a URC employee. Then check his user profile and see if his email address is posted.

He has done wonders with variables that show different buttons at different times using quite sophisticated variables.
When ignorance is bliss, ‘tis folly to be wise.
Post 4 made on Wednesday January 3, 2007 at 18:11
KCThirstyEar
Active Member
Joined:
Posts:
January 2003
551
He's certainly more qualified than me. I'm convinced that with creative use of variables, you can do darn near anything. Once I got a good grip on how they work, they changed the way I programmed. Totally sweet.
KC
Audio Artisans
Post 5 made on Thursday January 4, 2007 at 12:04
Darnitol
Universal Remote Control Inc.
Joined:
Posts:
June 1999
2,071
I do have an answer for this, but I'm working today and tomorrow to get some projects done before CES. I'll try to write up a usuable explanation when my projects are done.

The short answer is that while you can't actually make a button "exist" or "not exist" with a variable, you can use variable and aliases to make a button that switches among various functions, then you can show or hide a separate button image with a variable. The end result in the remote is what you want: It looks and works like the button is completely changing appearance and function based on the state of the variables. that the button in that position appears to change in both appearance and function based on the settings of the variables.

Dale Crawford
Instructional Media Designer
Universal Remote Control, Inc.
I'm a member of the Remote Central community, just like you! My comments here are my own, and in no way express the opinions, policies, or plans of Universal Remote Control, Inc.
Post 6 made on Thursday January 4, 2007 at 17:27
GregoriusM
RC Consultant
Joined:
Posts:
December 1999
9,809
On January 3, 2007 at 18:11, KCThirstyEar said...
I'm convinced
that with creative use of variables, you can do darn near
anything.

That's why they call him "Darn"itol! he he he He knows variables! ;-)
When ignorance is bliss, ‘tis folly to be wise.
OP | Post 7 made on Sunday January 7, 2007 at 18:35
Mike Garzione
Founding Member
Joined:
Posts:
September 2001
63
I figured it out -- I set each button to use a variable to select its display image, deleted the "0" image, and set the "1" image to be what I wanted displayed when the variable was "1". Then stacked them up. Works great. Thanks for the tips.

After programming the RC9200 for a number of years, I guess I'm a little stuck in a box with how I think about making the remote do things. MX3000 == way cool ;-)
Post 8 made on Sunday January 7, 2007 at 21:48
Ericjb
Active Member
Joined:
Posts:
February 2004
655
By doing this you can display any single image you want by setting only that variable high, but the only button programming that will work will be the top button. Even if you see the icon from the bottom button, the top button is the only one you can press.

Did you create all of your logic on that top button?
There are 10 types of people in this world,
There are those who understand binary,
and those who don't!
OP | Post 9 made on Monday January 8, 2007 at 07:45
Mike Garzione
Founding Member
Joined:
Posts:
September 2001
63
The top button stays transparent and that plus some hidden ones do all the logic. The buttons farther down the stack are only used to get a variety of images displayed.

I'm going to optimize this to work with only 2 buttons instead of 4 since I only need 3 different images and that only takes 2 buttons.
Post 10 made on Monday January 8, 2007 at 12:34
Darnitol
Universal Remote Control Inc.
Joined:
Posts:
June 1999
2,071
Mike:

Clearly, you have it figured out. The method you described is exactly what I do on my own remote.

Thanks,
Dale
I'm a member of the Remote Central community, just like you! My comments here are my own, and in no way express the opinions, policies, or plans of Universal Remote Control, Inc.


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