There are a few tools that might allow you to do this. I'm not 100% on what you are trying to accomplish, but have a look at Touch Control Server along with a USBUIRT. I have built custom mapping for my phone (or computer) to control a number of devices. Wouldn't be hard to control another type of STB, so long as the remote control can be read into the USBUIRT.