small circuit that uses a 12V/5V molex computer plug, that can be programmed to emit a learned IR sequence out of IR dongle, or\and that controls a small relay that can connect two wires, based on the condition on the 12V/5V lead.
I use a very similar setup on my cab with an "Arduino" microcontroller:
http://www.arduino.cc/ Instead of a molex plug, I leave the USB programming cable connected—when the computer turns on, the USB port receives power and thus the arduino turns on, executing my script from the beginning.
The IR scripts can be quite complex to write from scratch, but you can easily find some pre-written for common manufacturers (i.e. Sony, Samsung, etc.).. If you don't care about the "learning" capability, you can just rip out an IR LED from any old remote and solder it to a digital pin and ground on the microcontroller (using the proper resistor, of course).
If you leave the programming cable connected like I did, you can easily send commands from/to the microcontroller using the "Serial" class functions. Once you download the Arduino IDE from the link I posted, have a look at the included code examples. Even if you've never coded before, you'll find it easy enough to cut/paste chunks of code from various examples until you get something working.
Use Google!!I'll be happy to help if anyone has questions\problems with this. Also, if anyone needs a script to turn a
Samsung TV on\off, let me know and I can send you my script.