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

Login:
Pass:
 
 

Page 1 of 5
Topic:
Using Variables in CCP: Design & Simple Creative Techniques Demonstration
This thread has 60 replies. Displaying posts 1 through 15.
Post 1 made on Friday May 28, 2010 at 16:58
mistachy
Long Time Member
Joined:
Posts:
April 2010
269
Variables are slightly controversial in the sense that they are powerful but often can be ineffective if not properly implemented.

I've decided to create this small tutorial to help some beginners and DIY's learn simple techniques that are effective in certain situations.

The beautiful thing about variables, is there is no "one way" to use or implement them, which makes them a very powerful tool to use. I highly recommend using them.

The first demonstration I will show is using variables to correct themselves and if that cant be done, then the pressing of a single button to correct the problem. For example: AT&T Uverse has a discrete on, but not a discrete off. In addition to not having a discrete off... receiving the OFF IR command isn't always 100% reliable. I often find the variable out of wack.

I have code that looks like this on the power button that turns off cable in the Family Room:


The problem is that when using a button such as "System Off" or "Play Playstation" that performs many operations, for whatever reason... if the cable box isn't actually turned off, the remote control still thinks it's off because the power variable is set to false. This could mess things up for other operations I want the remote to perform.

Here is how I fixed the problem.

First I set up a discrete self correcting power toggle.


The code looks like this:


What makes this technique better, is if in the event that the power doesn't turn off, I can use the discrete on operation with the power toggle to turn the cable box off and set the "fr_cable_power_off" variable to the right state. If the cable box is on and the remote thinks it's off, one press of the toggle should turn tell the remote that the cable box is on, and a second press will turn the box off and set the "off" variable to true.

Now even though this corrects the situation. You can't look at the state of the variable visibly and see whether the remote thinks it's on or off. For this reason, I've set up an indicator to tell me visibly whether the box is on or off. I used an additional variable to help me keep other variables in check.

If the remote thinks the box is on:


If the remote thinks the box is off:


Setting up an indicator is easy. Export a green button, shrink it to about 20 pixels, and do the same for a red button. Create a variable called "cable_power_on" and set it to initial value "false". Import the red "off" button you created, and for its pressed state, import the green "on" button you created.

It should look similar to this when finished:


Next select your "cable_power_on" variable in this drop down box:


Now, when your cable power is turned on and your "cable_power_on" variable is set to true, you power indicator will be green. When the power is turned off and the variable is set to false, it will show red.

If you don't have a discrete on or off, simply set the macro code on the indicator graphic such that, when pressed, it swaps the value of the variables to the correct state of the device.


The second demonstration I will show is how to creatively use variables to perform multiple actions from different devices throughout the remote from one central device on the remote. Example: This is my bedroom device that hosts buttons to individual room devices.


From this location, I have hard buttons on the bottom that perform all the macros to do those activities. The icon buttons jumps to those individual devices. As you can see, I have multiple devices but I dont have multiple versions of the guide button. But, with the power and correct implementation of variables... I can make these buttons sing.

Example: this can be done a few ways, but I chose to do it through the main device I use in the room which is the Marantz SR8002 stereo receiver.

I like to call this the "one button does wonders" technique.

The button I'll demonstrate is the "GUIDE" hard button in this case.

This is what I want to do, when I'm in the bedroom device, I want to be able to control the Marantz hard buttons as well as the Epson 8500UB Projector hard buttons.

Variables used:
"control_marants", and "control_epson"
These variables control the visible indicator.

Very simply, the if/else statements and "Punch Through" does the rest of the work.


Procedure:
First i have created a transparent graphic, and 2 other graphics to use called "EPSON" and "MARANTS":

Transparent...

Epson...

Marantz...



Next, I set them up to look like this: Setting their before graphic to transparent and their after graphic to the picture.


And, I place them on top of one another like this:



Next, from within the Marantz device, I have programed my guide button with this code:



The guide button code works such that:
On long press, switch between (toggle), Marantz indicator "true" and Epson indicator "true". This operation shows and switches the indicator on screen.

On short press, if epson control indicator is true then press the guide button for the Epson projector, or else if the marantz control indicator is true then press the guide button for the Marantz stereo receiver.

The initial value for epson control is true, so the guide button and indicator are default.

After coding, I Punch Trough this hard button to be used on the Bedroom device:



In action: this is what happens.
Long press toggles control.
When epson control is true, my Bedroom device shows:


On short press: the guide pops up...


On long press: the toggle switches to Marantz:


On short press: the guide pops up...



The power of variables is enormous as you can see. But, as I said at the beginning of this demonstration, if implemented incorrectly... it can be ineffective in your set up.

I hope this thread proves helpful to some of you beginners and do it yourselfers. PM and post if you have any questions or need something further explained.

Last edited by mistachy on May 29, 2010 22:39.
MX6000 :o) myfile [Link: texas-rebel.com]
LR: Onkyo TX-NR807, Samsung 52", MRX-1. BR1: LG 37", Sony AVR, MRF-260. BR2: MarantzSR8002, Epson8500 100", Klipsch RF-82 HT System, MSC400, HTPC
Post 2 made on Saturday May 29, 2010 at 00:04
Palnews26
Long Time Member
Joined:
Posts:
April 2009
490
Are you the one who writes those idiot guides?
Instead of asking me why my price is high ask the other guys why they are low.
http://perfectionpluspainting.com
http://roofcleaningbergencounty.com http://powerwashingbergencounty.com
Post 3 made on Saturday May 29, 2010 at 00:10
vbova27
Super Member
Joined:
Posts:
July 2006
2,987
Use the Wiki. That's what it is there for.
Post 4 made on Saturday May 29, 2010 at 00:49
Palnews26
Long Time Member
Joined:
Posts:
April 2009
490
Please
Have your parents buy you, or find you, something else to do.
You may want to double up on the medication for a while.
[Link: remotecentral.com]
Instead of asking me why my price is high ask the other guys why they are low.
http://perfectionpluspainting.com
http://roofcleaningbergencounty.com http://powerwashingbergencounty.com
Post 5 made on Saturday May 29, 2010 at 11:40
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
The blind leading the blind. I was hoping for some DIY'er to write a tutorial on variables. Isn't this the guy that couldn't figure out the tilt control??

When did variables get controversial?? That's one of the funniest things I've read in a long time.

Please go here www.avsforum.com/  Your people await.

Last edited by kgossen on May 29, 2010 11:51.
"Quality isn't expensive, it's Priceless!"
OP | Post 6 made on Saturday May 29, 2010 at 13:07
mistachy
Long Time Member
Joined:
Posts:
April 2010
269
all this positive feedback is definitely inspiring me to do more tutorials. thanks guys. im happy to put time and effort into it and i promise you i will keep up the good work! :)
MX6000 :o) myfile [Link: texas-rebel.com]
LR: Onkyo TX-NR807, Samsung 52", MRX-1. BR1: LG 37", Sony AVR, MRF-260. BR2: MarantzSR8002, Epson8500 100", Klipsch RF-82 HT System, MSC400, HTPC
Post 7 made on Saturday May 29, 2010 at 14:09
Duct Tape
Loyal Member
Joined:
Posts:
November 2008
5,224
 ignore Miss Touchy, and she will go away...
[Link: facebook.com]
OP | Post 8 made on Saturday May 29, 2010 at 15:57
mistachy
Long Time Member
Joined:
Posts:
April 2010
269
On May 29, 2010 at 14:09, Duct Tape said...
 ignore Miss Touchy, and she will go away...

thats what im hoping...
MX6000 :o) myfile [Link: texas-rebel.com]
LR: Onkyo TX-NR807, Samsung 52", MRX-1. BR1: LG 37", Sony AVR, MRF-260. BR2: MarantzSR8002, Epson8500 100", Klipsch RF-82 HT System, MSC400, HTPC
Post 9 made on Saturday May 29, 2010 at 22:28
Mx6000dude
Lurking Member
Joined:
Posts:
May 2010
2
WOW!! This is great information. Very detailed and helpful. Thanks MistaChy! I'm new and don't really understand variables well. This helped a bunch. Can I PM you with more off topic questions? I could really use the help. :(
OP | Post 10 made on Saturday May 29, 2010 at 22:41
mistachy
Long Time Member
Joined:
Posts:
April 2010
269
On May 29, 2010 at 22:28, Mx6000dude said...
WOW!! This is great information. Very detailed and helpful. Thanks MistaChy! I'm new and don't really understand variables well. This helped a bunch. Can I PM you with more off topic questions? I could really use the help. :(

no problem mxdude. pm me anytime... i'd be delighted to help you program your remote. welcome to the community btw. just a word of caution... beware of telling people how you got your remote or your software. your words might be used against you in this court of law.

oh and here is another tutorial i wrote that may be helpful...
[Link: remotecentral.com]

thats for custom network icons.

Last edited by mistachy on May 29, 2010 22:53.
MX6000 :o) myfile [Link: texas-rebel.com]
LR: Onkyo TX-NR807, Samsung 52", MRX-1. BR1: LG 37", Sony AVR, MRF-260. BR2: MarantzSR8002, Epson8500 100", Klipsch RF-82 HT System, MSC400, HTPC
Post 11 made on Saturday May 29, 2010 at 23:48
Mx6000dude
Lurking Member
Joined:
Posts:
May 2010
2
On May 29, 2010 at 22:41, mistachy said...
no problem mxdude. pm me anytime... i'd be delighted to help you program your remote. welcome to the community btw. just a word of caution... beware of telling people how you got your remote or your software. your words might be used against you in this court of law.

oh and here is another tutorial i wrote that may be helpful...
[Link: remotecentral.com]

thats for custom network icons.

Thanks for the advice, I was just reading through a lot of threads and noticed that people are very touchy here. I shall tread lightly.

And a quick question. How did you get your power battery picture in this photo to have those black horizontal lines. Mines is solid green with the orange lightning bolt. Yours looks cooler.

OP | Post 12 made on Sunday May 30, 2010 at 00:15
mistachy
Long Time Member
Joined:
Posts:
April 2010
269
On May 29, 2010 at 23:48, Mx6000dude said...
Thanks for the advice, I was just reading through a lot of threads and noticed that people are very touchy here. I shall tread lightly.

And a quick question. How did you get your power battery picture in this photo to have those black horizontal lines. Mines is solid green with the orange lightning bolt. Yours looks cooler.


yea man.... i couldnt stand that solid green battery charge image either. It's on stage 7 of the actual gif file if i remember correctly. changing it is simple. infact i posted the proceedure to change it in another thread. i exported the image from CCP and used adobe fireworks to edit the animated gif. you should be able to use a lighter weight program though if you dont have fireworks. Just Goggle Search: Animated Gif Editor and download something capable of editing animated gifs.

i explained the process here:
[Link: remotecentral.com]

feel free to PM me if you got any other questions need answering.
MX6000 :o) myfile [Link: texas-rebel.com]
LR: Onkyo TX-NR807, Samsung 52", MRX-1. BR1: LG 37", Sony AVR, MRF-260. BR2: MarantzSR8002, Epson8500 100", Klipsch RF-82 HT System, MSC400, HTPC
Post 13 made on Monday May 31, 2010 at 08:39
vbova27
Super Member
Joined:
Posts:
July 2006
2,987
On May 29, 2010 at 22:41, mistachy said...
no problem mxdude. pm me anytime... i'd be delighted to help you program your remote. welcome to the community btw. just a word of caution... beware of telling people how you got your remote or your software. your words might be used against you in this court of law.

oh and here is another tutorial i wrote that may be helpful...
[Link: remotecentral.com]

thats for custom network icons.

What a loser - like there is any doubt that MX6000dude is no other than......yourself. What a coincidence that he displays the same annoying qualities as you with his incredibly childish happy face symbols.......And he even owns the same (and only remote) you do - the MX-6000.

I have seen some pretty stupid things, but setting up an account just to be your own cheerleader is absolutely pathetic. Go and get yuorself a life.
OP | Post 14 made on Monday May 31, 2010 at 11:40
mistachy
Long Time Member
Joined:
Posts:
April 2010
269
On May 31, 2010 at 08:39, vbova27 said...
What a loser - like there is any doubt that MX6000dude is no other than......yourself. What a coincidence that he displays the same annoying qualities as you with his incredibly childish happy face symbols.......And he even owns the same (and only remote) you do - the MX-6000.

I have seen some pretty stupid things, but setting up an account just to be your own cheerleader is absolutely pathetic. Go and get yuorself a life.

as i said... keep dreaming. this thread will be a help to many people whether you like it or not. im beginning to think you are the one that's the "loser" as you put it. I'm just a member posting help for those in need... while you are getting your panties wedged up your rear... all pissed off and throwing tantrums because im helping people. really.... who sounds like the loser here. if me posting help for others in a help thread is causing you to lose clients, then maybe you are in the wrong line of work.

maybe your just upset that a little college kid can do what you can do with your "extensive training" with very little training at all.

yea.... thats it.

I think you are upset because you are so easily bypassed.

You dont want consumers to have access to the software. you are always bichen and causing a ruckus... getting all mad because a customer got their remote from ebay and not you... I mean... are you ever happy, ever? seriously... you are never happy. i think you need to go back to school and get an education and stop hatin'... and find a real job maybe. if you arent good enough to succeed and cut the mustard like other CIs (those who dont need to sell remotes on here to be successful; yea i seen the market place... you're just so hungry for a sale), then go get some real knowledge from a 4 year institution. I bet you have a GED... maybe that's why you're being so obnoxious. With that nice little GED you have, you're stuck with this industry because the only thing left that you qualify for is landscaping, or the JCPennys checkout counter. I can tell you are hurting financially; you dont want DIY's to do something as little as programming their own remotes... i mean anyone that comes here are obviously gonna be YOUR client so you just have to sabotage everything that they can manage on their own without you involved for a quick dollar. i'm not calling you one, but you act like a vulture.


loser..... yea, im the "loser"... im a big loser. thats totally obvious... because i need to sell remotes on the internet and stop others from programing their remotes.

Last edited by mistachy on May 31, 2010 12:44.
MX6000 :o) myfile [Link: texas-rebel.com]
LR: Onkyo TX-NR807, Samsung 52", MRX-1. BR1: LG 37", Sony AVR, MRF-260. BR2: MarantzSR8002, Epson8500 100", Klipsch RF-82 HT System, MSC400, HTPC
OP | Post 15 made on Monday May 31, 2010 at 13:26
mistachy
Long Time Member
Joined:
Posts:
April 2010
269
On May 31, 2010 at 08:39, vbova27 said...
What a loser - like there is any doubt that MX6000dude is no other than......yourself. What a coincidence that he displays the same annoying qualities as you with his incredibly childish happy face symbols.......And he even owns the same (and only remote) you do - the MX-6000.

I have seen some pretty stupid things, but setting up an account just to be your own cheerleader is absolutely pathetic. Go and get yuorself a life.

"annoying qualities... incredibly childish happy face symbols....."

like all the other members who use them like, lets say this guy... and all the countless Longtime, Senior, and Ultimate Members who frequently use them. i guess we all just annoy you dont we... with our endeavors to get help programming our remotes? i'm glad you think so highly of yourself while looking down on us peasants from your mighty throne. I kind of like lvsrobs smiley... i think ill incorporate it into my repituar, better yet... its in my new signature.

On February 28, 2007 at 21:49, lvsrobs said...
Thank you guys for all of your help. I plan to program remotes 900 and up so it looks like no problem for me :o)) I am going to get windows emulator and give it try. Thank you again , you told me exactly what I needed to hear. Thanks Rob

Last edited by mistachy on May 31, 2010 14:06.
MX6000 :o) myfile [Link: texas-rebel.com]
LR: Onkyo TX-NR807, Samsung 52", MRX-1. BR1: LG 37", Sony AVR, MRF-260. BR2: MarantzSR8002, Epson8500 100", Klipsch RF-82 HT System, MSC400, HTPC
Find in this thread:
Page 1 of 5


Jump to


Protected Feature Thread Closed
This thread has been locked. Replies are not allowed at this time.

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