I'm trying to create a switcher between only two applications. I have the macro setup in a way I thought it would work but it isn't responding and there is no error notification.
The objective is if both Google Chrome Window with a specific title and Apple Mail are running but not in front.
Bring them both to the front.
If only one is in front, bring the other and vice versa. Oh, and the specific Chrome window is on an external monitor to the left of the main screen, it should remain in that position.
Can someone tell me what's wrong with it?
App Switch Macro (v9.0.6)
App Switch.kmmacros (4.4 KB)

The Google Chrome window is responding but not the mail app.

It works for me. (I even set up Mail just so I could try the same app you're using.) You did say Mail and Chrome are on different monitors and don't overlap, right? This macro brings them both to the front.
1 Like
Do I have a wrong action in my macro or is it in the wrong order? I tried to duplicate yours almost exactly.

That's almost exactly mine, yes. I used "window with title containing" for the Chrome action, but if that part of yours works, leave it with what you've got.
What isn't working, and what do you want to happen?
As I said, my macro is built on the assumption that Mail and Chrome are on different monitors, so it doesn't really matter which one is in front and active. Do you need to actually make one active for additional actions (like your triple-click action in the partial screenshot)?
Please be really specific, and I'll see if I can help.
I think it wasn't responsive because I placed the macro in a group that would only permit macros when Mail and Google Chrome are running.
I don't think it should have mattered because both apps are always running just not in front.
1 Like
So it works now?
It's a common mistake (one I've made a couple of times). I think, because you're testing for two applications to be running, putting the macro into an application-specific group prevents KM from knowing that both apps are running.
1 Like
Yes it works now, thank you.
1 Like