Learning RF codes is trivial if you know the RF carrier frequency and can find an RF receiver for that frequency. Inexpensive RF receivers to accomplish this are available in 300MHz, 303.875MHz, 310MHz, 315MHz, 318MHz, 418MHz, 433.92MHz, 868.35MHz, and 916.50MHz. Most of them can be tuned over a fairly broad range.
You can capture the codes using a soundcard and view the waveforms in any Wave editor.
IR is equally trivial. You just substitute the proper IR receiver for the RF receiver.
I have published details, including schematics and screenshots, at...
[Link: laser.com]