some TVs have that ability (known as discrete codes), and if you tell us the brand we might be able to help. You can also look here
[Link: remotecentral.com] and some of the CCFs on this site (in the file section).
even if discrete codes do not exist, you might not be out of luck. On some TVs ch+ brings you to the antenna, then you can send an input command to change to input1