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:
Varibles not working
This thread has 13 replies. Displaying all posts.
Post 1 made on Tuesday October 14, 2014 at 16:13
Remote Programer 87
Lurking Member
Joined:
Posts:
October 2014
7
Hi, Here is my problem I'm trying to do Variable's for a one button press activity. My issue though is when i press watch TV for example if the The TV is ON go to HDMI 1 then jump to Cable page. If The TV is OFF then Power ON TV delay 8 sec then go to HDMI 1 but when i press the Watch TV button it sends both IF/Else Statments.

What am i doing wrong
 
Post 2 made on Tuesday October 14, 2014 at 16:48
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
It sends both because of the structure of your macro. You've got 4 IF/ELSE statements going on when at most, you should have 2 but could do it with 1.

Leave the cable box on, all your doing is turning off the front panel, not saving any real money. You should be using only the TV Power On variable as that's all you need. You want it to delay 8 seconds but you don't have an 8 second delay anywhere! You're setting the Variable TV Power 4 different times in this 1 macro.

IF Variable TV Power On = False
TV Power On
Delay 8 Seconds
TV HDMI 1
Set Variable TV Power = True
Jump Cable TV Page
Else
Jump Cable TV Page

If you're switching from a different activity and need the HDMI input on the TV to change if it's already on, just add that command to the ELSE section.

Last edited by kgossen on October 14, 2014 16:56.
"Quality isn't expensive, it's Priceless!"
Post 3 made on Tuesday October 14, 2014 at 17:37
goldenzrule
Loyal Member
Joined:
Posts:
July 2007
8,470
Around here, the cable company routinely sends updates to the boxes in the middle of the night, which automatically shuts them off. So we either use power and numeric workaround when available, power tracking via variables, or a vid or light sensor if using TC.
Post 4 made on Tuesday October 14, 2014 at 18:48
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
If that's the case, then nest a second IF/ELSE in the macro for the cable box.

When we get updates, 99% of the time if the box is on, it comes back on.

All our new boxes don't even have power on/off at all. They just put up a screensaver.
"Quality isn't expensive, it's Priceless!"
OP | Post 5 made on Tuesday October 14, 2014 at 19:00
Remote Programer 87
Lurking Member
Joined:
Posts:
October 2014
7
I think i got it

But I did the Variable as you had it except on the else section for the False TV statement i put go to HDMI 1. I thought i had the 8 sec delay in that macro what i want is if the TV is off it needs a about 8 sec when it initially starts up before it will accept a command if its on just jump to input but when i do the macro now it does a 8sec delay when the TV is on instead of just going to the HDMI 1 input
Post 6 made on Wednesday October 15, 2014 at 08:46
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On October 14, 2014 at 19:00, Remote Programer 87 said...
I think i got it

But I did the Variable as you had it except on the else section for the False TV statement i put go to HDMI 1. I thought i had the 8 sec delay in that macro what i want is if the TV is off it needs a about 8 sec when it initially starts up before it will accept a command if its on just jump to input but when i do the macro now it does a 8sec delay when the TV is on instead of just going to the HDMI 1 input

Then your macro structure is still wrong.
"Quality isn't expensive, it's Priceless!"
OP | Post 7 made on Wednesday October 15, 2014 at 21:22
Remote Programer 87
Lurking Member
Joined:
Posts:
October 2014
7
I have the structure figured out but when i turn off the TV with the remote, then later come back and turn it on only the Cable box comes on.
Post 8 made on Thursday October 16, 2014 at 00:38
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On October 15, 2014 at 21:22, Remote Programer 87 said...
I have the structure figured out but when i turn off the TV with the remote, then later come back and turn it on only the Cable box comes on.

The your programming is wrong or the macro structure is wrong.


Don't know how else to say this. Post your new macro.

I've programmed 50+ URC remotes in CCP and what you're trying to do is 5 minutes tops.
"Quality isn't expensive, it's Priceless!"
OP | Post 9 made on Thursday October 16, 2014 at 11:04
Remote Programer 87
Lurking Member
Joined:
Posts:
October 2014
7
I do have the TV Power sequence figured out I Now found my Problem.

For my Cable Box Macros I Have to Invert my Variable for it to turn on I don’t know why. I don’t have desecrate power for the cable box I use Menu Power Power for a desecrate power command. I know some people say leave the cable box on but in my case it is on a Shelf so its visible and we don’t like to see it on

I have 2 Motorola Cable Boxes one is a DCX3200 the other is a DCX 3400 (DVR)

The other Motorola Cable box works fine with the Variables normal. But the DCX 3200 will only work if I invert one of the Variables




 

Last edited by Remote Programer 87 on October 16, 2014 15:48.
Post 10 made on Thursday October 16, 2014 at 16:03
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
So dude but that's still a complete mess!

I'll take a look at it later and try to help you out.
"Quality isn't expensive, it's Priceless!"
OP | Post 11 made on Thursday October 16, 2014 at 16:51
Remote Programer 87
Lurking Member
Joined:
Posts:
October 2014
7
I got it all working its just weird I have never had to invert an IF/ELSE Statement before like that. I don’t understand why I had to that. Are certain Motorola Cable Boxes or DVRS Like that?

Post 12 made on Thursday October 16, 2014 at 17:46
thxext
Long Time Member
Joined:
Posts:
December 2005
50
Nvm
Post 13 made on Thursday October 16, 2014 at 18:30
kgossen
Super Member
Joined:
Posts:
March 2008
3,026
On October 16, 2014 at 16:51, Remote Programer 87 said...
I got it all working its just weird I have never had to invert an IF/ELSE Statement before like that. I don’t understand why I had to that. Are certain Motorola Cable Boxes or DVRS Like that?


On your second IF/ELSE it's with IF cable power on = true, shouldn't that be false? If it's already on why don't you just jump to the right page?

Are you setting the variables to false on your TV Off macro?

Also, put a .1 delay in between all your steps. It'll increase reliability a lot.
"Quality isn't expensive, it's Priceless!"
OP | Post 14 made on Thursday October 16, 2014 at 19:04
Remote Programer 87
Lurking Member
Joined:
Posts:
October 2014
7
I did have the cable IF to False, but it wouldn't do anything I found out I had to invert it to turn it on the normal way. If should be True works with my DVR but the other box I have I have to do it this way. I know it sounds strange it's strange to me to I just don't understand why?


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