Triggering Streamdeck profiles with PlugIn windows in Cubase/Nuendo/Liveprofessor

I started to build a macro inspired by this macro: https://forum.keyboardmaestro.com/t/triggering-stream-deck-profiles-for-logic-pro-plugins/23357

I get Streamdeck profiles to change when a plugin window is opened but when I use more than around 10 macros (one for each plugin) nothing is switching anymore.

user (ncbasic) brought up this idea to just use one macro for all plugins but I couldn't make it work:

It looks like you are triggering all those macros on any Nuendo window change -- if so you may be running into a concurrency limit, stumbling into Nuendo reactivation issues, or even having the first-to-complete macro execute its "Cancel all Macros" action before the one you want to run gets a chance.

You don't need a macro for each. Make just one and in that have a "Switch/Case" action. Showing only a couple of options for brevity:

image

Going this route you will need to name your macros exactly the same as the window name it should match with. I don't use Nuendo -- perhaps it prefixes the window name with "Plugin" or includes some other text? So check the title of your window carefully...

Awesome. That seems to work!
I was looking for a simple solution like this.

Thanks very much!

So, I don´t know what happened but the plugin windows don't stay in front anymore. So the plugin window opens and when the apple script application closes the plugin window goes into the back and the finder comes back to the front.

Until you upload your macro we'll be as much in the dark as you!

:grin:
Sorry!

I guess I got it now...hopefully...

No, that's an image of a part of your macro. It's easier for people to see what's going on if you provide the macro itself (suitably edited if there's anything sensitive in it, of course).

But if all you are doing is switching SD profiles, why are you bringing anything to the front after the AppleScript app runs? If you just launch the AS app and let it self-quit then nothing else should change and your app and window ordering should be as it was before.

That's all there is in the macro. Just plenty of them for each plugin.
When I don't use the "Bring window to front" action finder is always in front after the app closes.

https://wiki.keyboardmaestro.com/Forum?&#How_to_PostUpload_Your_Macro_to_the_Forum

PlugIn Macro.kmmacros (126.3 KB)

There it is.

While I wait for the Nuendo trial to install...

So... If it worked three days ago and doesn't work now -- what did you change? Did you, for example, add those "LiveProfessor" actions? Edit the AppleScript app? Update some software?

I´m not sure. Maybe it's because I'm switching from a multi monitor setup to just a laptop screen.

Doubtful.

Putting the question another way -- in your OP you're activating the AS app, activating Nuendo, then exiting. In the (failing) macro you uploaded you're activating the AS app, activating Nuendo, activating LiveProfessor, then exiting.

Why are you activating LiveProfessor last if you want to return to having Nuendo active, or have your requirements changed?

I couldn't reproduce your issue -- for me, the AS app launches and quits leaving whatever was frontmost at the front again. Check one of your AS apps to make sure it is behaving properly -- easiest way is make a one-action "launch the AS app" macro in KM and run it with the run button. It should launch, quit, and leave KM frontmost.

One thing I did notice is that activating LiveProfessor after Nuendo makes any Nuendo plugin window "disappear" -- it's still open, but is only visible when Nuendo is frontmost. Indeed, as written your macro makes it almost impossible to use a Nuendo plug-in window because every time you activate it LiveProfessor jumps to the front and makes it disappear again!

Try disabling the LiveProfessor activation for a couple of the plug-in cases and see if that solves the problem for those plug-ins. If so, disable/delete for the other cases too.