What might be cool, is if i could add a second invisible button on top of the mute button that always engages everytime i click the regular button, but i think it would break on right clicks.
1. Get track under mouse
2. If rec armed (GetTrackValueInfo) run scriot that you want
3. Update project state (old state ~= current state check) so it only does it once
This is simplified but you will need to track recarmed tracks also so it triggers only on rec arm change