Pro Tools spacebar to play/stop, even when plug-in hosts have focus

Apologies if I'm doing anything wrong in sharing this macro. This is the first time I'm sharing one.

I put this together to be able to hit play/stop in Pro Tools even when a hosted plug-in window has focus. Without this, the spacebar seems to be intercepted by various plug-in host apps.

The macro will also know to enter a literal space character when a save/save as, Help menu, New Window Configuration, or New Memory Location window is open.

_PT_Play.kmmacros (34.7 KB)