Can a double-click execute a script?

Not sure what exactly you are trying to do but multi-volumes does stuff based on what block (or range of blocks) is selected in the pattern matrix. It uses an app-idle notifier to constantly monitor which blocks are selected and if the selection changes it updates what track volumes should be controlled.

You could perhaps have something like do something on a track when it is selected in pattern matrix AND something else… like drawing a range in the pattern editor on the same track.