How do I send a MIDI message on bank change?

Use the Bank Presets to execute upon entering or exiting a bank.