Asks for a model of the device you are controlling.
Asks you to push a button or gives you the option to skip this button if it is not used.
Stores the data for that button under the model of the device.
Once the data is gathered the last prompt will write all this data to a file a remote configuration.
Then modify this program to load the remote data from a drop down menu when selected dynamically things will change to work for this remote that is selected...
Call me a dreamer but wouldn't something like this be possible at a point we could have a sub forum dedicated to IR remote configurations and people sharing them to make life even easier yet.
Just a wild thought I mean when you take a look at a universal remote you cant tell me the hardware is anywhere near as good as the esp8266 I would think remote control emulation at this level would indeed be possible.
Where I buy my ESP8266 boards from... (Banggood)