Single Button IR Remote

Ha-ha, I'm back again. For reference the code previously posted.

I obviously have the button press assigned but how do I define where the IR Transmitter is in the code?