
Corin
2 discussion posts
I'm trying to set up triggers for "message" windows in Outlook, meaning when I open a specific message as a new window or reply/create a message. Due to the way Outlook re-uses windows handles, I'm struggling to get the behavior I want.
Ideally I would like to set it up (in concept) as a "Window Created" trigger to then set the size and location, therefore when a new message window appears it will put it in my specified location but if I choose to move it somewhere else that particular window will stay where I put it. Opening another message would then put the new message in the specified trigger location, but leave the previously opened message where I had moved it. I will often open 2 or 3 different message windows and move them around to see contents all at the same time.
I've reviewed these other discussions that have a lot of great info in them:
[URL=https://www.displayfusion.com/Discussions/View/focus-event-trigger-not-just-top-level/?ID=aefb12e8-fca2-4ecc-aa7a-06d905d6c744]Focus Event Trigger not just top level[/URL]
[URL=https://www.displayfusion.com/Discussions/View/open-outlook-on-specific-monitor/?ID=7fd9f111-4144-4bc5-ab95-b86e8b7453fc]Open Outlook on specific monitor[/URL]
[URL=https://www.displayfusion.com/Discussions/View/how-to-force-app-child-windows-modalmodeless-to-open-in-the-same-display/?ID=66c1cc5b-8b5f-46d7-bff1-38d13b0fc680]How to force app child windows (modal/modeless) to open in the same display[/URL]
It seems that setting my trigger to "Window Focused" and Frequency "Always" manages to overcome the issue with Outlook re-using window handles, however if I move a message to a different location manually, then flip back and forth between windows, that message snaps back to the trigger location. If I switch the Frequency to any of the other settings (Process ID, Process Name, or Once-Per-Window) it rarely ever activates the trigger since, I assume, the same handles are being re-used over and over.
Has anyone found a decent work-around to this issue?

David Son
1 discussion post
I enabled a trigger for Outlook focused windows that centers the focused window on the monitor. That works fine. I would also like the ability to move these focused windows without having them snap back to the center of the monitor. However, I don't want the new windows maximized to monitor 2 as described in the above script. I just want them centered as in the trigger. Is this possible?
Another issue I see is that if I click a button in the focused Outlook window header (e.g. "Move"), the drop-down menu also gets centered on the monitor. Is that unavoidable?
Jun 21, 2021 (modified Jun 21, 2021)
•
#5