In another thread you commented you aren't getting much help in this thread. The reason can be summed up by an earlier post by Vicky:
Steve, you present quite a challenge.
Normally we are working with more abstract problems in the forum. You are having trouble with things that should be pretty obvious. We've provided all the discrete codes you requested, but you don't seem to know what a discrete is. It makes it really difficult to help you.
For that very reason, I hate to jump back in, but her comment about you not understanding what a discrete code is rings true - either that or you just had a typo. You said:
if I press key 4 on it’s on it will turn on the TV (that’s allready off) just like the main power doe’s is this key 4 actualley a discrete power on? I’m thinking key 4 if it was a discrete TV on it would’nt turn the TV (that’s allready off) on.
A DiscreteON command is sent to guarantee that a device is on. If the device is off, it should turn on. If the device is already on, nothing should happen.
A DiscreteOFF command is sent to guarantee that a device is off. If the device is on it should turn off. If the device is already off, nothing should happen.
A Discrete<select input> command is to select a specific input on the device no matter what the current input state.
The use of a discrete code in a macro is to guarantee a known state of the device before sending other commands that depend on that state, or just to achieve what the user wants.