Midi Output on Track select

Hi there!

I need to let an external Program (max msp) know, whenever a midi track gets selected, or record enabled. Is there a way to do that in Cubase 5 or 6? I come from Logic, where only one track can be selected at a time, so I am not sure, how to handle that. The reason i am trying to do that is I want max msp to load certain presets automatically on track select. So, an exclusive midi message for each possible midi track would be the solution. It could be anything, as I convert it in max msp.

Ay ideas?