If I have 2 apps open side by side, switching focus to another app, hides the app, how to avoid this

have above macro but there is issue that when activate last application activates it sometimes hides the window/app it's switching from, demo below:

https://storage.ronin.co/spa_tjx1cghqk8ngbjws/68973c4c-bff0-4df5-ade5-c3a704ec487d

how can I modify the macro so that it does not do that, it switches focus to the app that is split without hiding from view the app it is switching from

switch between windows of same app (or switch to another app if no more than 1 window).kmmacros (25.1 KB)

Your link isn't working; can you post a working link so we can see the movie?

-rob.

can you try again? i think linked died for a min there, it should work now

Is it hiding it? Or is it simply bringing all the windows of "Last Application" to the front -- just like you've told it to with the "Activate" action-- which is covering up the old window.

Yea I think you are right, it does that.

What I want is to focus on the last window of the app (so it only brings that up).

Is it possible to do?

Yep -- at least, it's working here...

For "reasons" I don't understand, if you use the "Use Variable" action to activate an app by name you'll only pop the frontmost window. So:

switch between windows of same app (or switch to another app if no more than 1 window) v2.kmmacros (3.9 KB)

Image

1 Like

yep this macro works perfectly, thank you