I think this is an appropriate place to put this, as it IS directly MIDI related.
Track Envelopes - add MIDI Learn, PM and UI boxes
http://forum.cockos.com/project.php?issueid=4740
I'm surprised this isn't already IN Reaper. I see there's been requests for this for years now. Using actions is ... not ideal, to say the least.