IR remote sequence

I have a little question about using the remote to turn on some lights. I want to press a button to select a LED and then press the power button to turn it on but i dont find any solution to use a sequence on the IR. Can i have some help?

There are many IR control threads on the forums. Have you looked at these?

Have you looked at the examples that come with the IR library?