zeltak
February 27, 2026, 2:25pm
1
Hi all
i have this macro
I’m trying to build a macro for Outlook with this behavior:
If a Mail window is already open (Inbox, Sent, Drafts, account view, etc.), just bring it to the front.
If only a Calendar window is open, then:
some things to considr:
I do not want to close or affect the Calendar window.
Mail window titles can vary (Inbox, Sent Items, Drafts, email address, etc.)
My issue is that using conditions like:
keeps triggering the “create new window” branch even when a Mail window exists.
What’s the most reliable way in Keyboard Maestro to detect the existence of at least one Mail-type window in Outlook, while ignoring Calendar windows?
thx so much!
Z
Nige_S
February 27, 2026, 5:05pm
2
Isn't the Calendar window always called "Calendar"? Seems to be the case here, but I'm (deliberately) on Legacy Outlook.
If so, then this should work:
1 Like
zeltak
February 27, 2026, 5:48pm
3
wow @Nige_S thats amazing..
i spent like 1h with chatGPT/gemini but they both could not get to this elegant solution…i guess we are still safe…for a few more years at least heheh
thx again!
Z
Keyboard Maestro is not sufficiently main stream that LLMs like ChatGPT have any kind of deep understanding of it, so it tends to hallucinate the gaps.
By all mean feel free to ask ChatGPT how to do something, but expect it to just as likely be wrong as right, and when it is wrong, just ask on the forum where amazingly generous real people with real Keyboard Maestro experience are happy to help.
1 Like
zeltak
February 28, 2026, 12:46pm
5
100% agree the people here on the forums are some of the nicest online
and thx @peternlewis for making my life that much better each day in this crazy world we live in
1 Like