For those of you that use zoom toggle in Pro Tools. I am trying to create a macro that will essentially 3finger (control+opt+com) hold and then click on Zoom Toggle when it is active. That way it leaves the current zoom setting while deactivating zoom toggle.
I have tried using 2 macros without success.
-"Set Keyboard Modifier State"
-- Hold Control - YES
-- Hold Option - YES
-- Hold Command - YES
The "click UI element" part is working but it is not engaging the modifiers.
I feel like I am missing something simple here....
Thanks!
- Nathan Salefski @nathansalefski
Hey Mike,
@chrscheuer explains it here Command click UI element #post-2 but this should do the trick for ya:
sf.ui.proTools.appActivateMainWindow(); sf.ui.proTools.mainWindow.invalidate(); sf.ui.proTools.mainWindow.cursorToolCluster.buttons.whoseTitle.is("Zoom Toggle").first.mouseClickElement({ relativePosition: {"x":15,"y":10}, isOption: true, isControl: true, isCommand: true, });
Chad Wahlbrink @Chad2023-09-28 00:53:58.253Z
@nathansalefski is right on the nose!
@Mike_LaFerla, if you want to do it with a macro, you can use the "Mouse Click Relative to UI Element" and click the "Gear" button to add the modifiers.- MMike LaFerla @Mike_LaFerla
@nathansalefski - Thanks so much for this! Works like a charm!
- In reply toMike_LaFerla⬆:Chad Wahlbrink @Chad2023-09-28 14:26:22.168Z
Another quick note, @Mike_LaFerla ! There is a built-in Pro Tools Key Command for "cancel zoom toggle and remain at same zoom level": ⇧⌥E