nikivi
June 14, 2024, 4:46am
1
I need to do a macro like above, where I want to open the app making sure that the window that is open is not window title that contains the text I provide. Ideally as fast as possible.
Above macro fails even though I thought %WindowName%1%
would do it as per this thread:
Howdy, I'm just starting with KM and immediately hit a comprehension roadblock. The first macro I'm seeking to understand is How Can I Use Standard Gmail Shortcuts in Apple Mail with Keyboard Maestro? , and it operates using window titles.
My question: how do I determine what a window's title is? I've tried searching all over for 'determine' and 'show' and so on and come up short outside of code samples for stuff like Swift. Some apps (like iTerm2) seem to show their title right on the window iā¦
Based on your description, it sounds like you need to switch the condition to "does not contain".
1 Like
Nige_S
June 17, 2024, 12:43pm
3
It might do. But you aren't using that token -- you're checking the global variable WindowName
instead. Change your If...
action's condition to
...and see how you get on.