Radio Shack has an IR controlled antenna A - B switch for 30 or 40 bucks. It has two discrete codes and it stays where it was if the power is removed.
I recently opened up one of these and used its guts to turn 12 volts on and off going to a speaker switcher...thus making an IR speaker A-B switch. You could do the same with a Niles or whosoever's power box that is switched by 12 volts DC.
A good answer is easier with a clear question giving the make and model of everything. "The biggest problem in communication is the illusion that it has taken place." -- G. “Bernie” Shaw