How to open an app but make sure that the window title does not contain a string

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:

Based on your description, it sounds like you need to switch the condition to "does not contain".

1 Like

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.