Processing Ajax...
Save 25% on our desktop apps during our Black Friday/Cyber Monday sale!Save 25% on our desktop apps during our Black Friday/Cyber Monday sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save 25% on our desktop apps during our Black Friday/Cyber Monday sale!

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

"Window Created" event trigger not working for background applications

User Image
Sim DF
2 discussion posts
Context
I mainly use DisplayFusion to make windows for frequently-used applications open with some ideal size and position, either because I had moved or resized them when I'd used them previously, or because of some occasional unwanted window behavior (e.g., weird window positions and sizes for active windows and background apps after playing a game in fullscreen with 1080p downscaling on a 4K monitor).

I set up most of these triggers like so... (see attachment for example)

Event: Window Created
Frequency: Always
Match Conditions: Usually just the process filename
Delay before checking match conditions: 0 MS
Actions: Move Window to Specific Size and Location (X=..., Y=..., W=..., H=...)

Problem
This trigger seems to work reliably for most windows, but not for certain apps (seemingly just the ones that I keep running in the background, e.g., Spotify, Discord, Steam). If I open the background app, end its process in Task Manager, and reopen it, then the trigger does work. But if I close and reopen it normally, the trigger does not work.

In further testing, if I set the trigger Event to Window Maximized, then the trigger works fine for these background apps. I've also tried increasing the match conditions check delay to as much as 3000 MS, but to no avail.

I've reinstalled once with a backup and once more after uninstalling, deleting my DesktopFusion folder in my Program Files, and reconfiguring my settings manually with no backup, but the issue persists.

Any help is appreciated!

Version
Windows 10 (v10.0.19045)
DisplayFusion Pro v9.9

Edits
Edit 1: In case anyone is wondering why I didn't create a Window Position Profile to accomplish this instead of using Triggers, I did use one before, but then suddenly my hotkeys stopped working completely. Fortunately, these now work again after my most recent installation, but I'd actually prefer to use triggers for two reasons: so I don't have to press any hotkeys after opening an application, and so I don't have to move and resize all open windows when pressing a hotkey when I just want to move and resize the one I'm opening.

Edit 2: Did a little more testing. If I try to set the match conditions to just the window title of one of these background applications, the trigger still does not work.

Edit 3: It seems some Windows apps (e.g., Settings, Mail) also don't work with the trigger (perhaps because they might also be running in the background). I'm unable to end these processes in task manager like the others however, so I have to change the trigger event for these to something like Window Maximized to get the resizing and repositioning to activate.

Edit 4: Several trigger events do not work for Steam (e.g., Window Created, Window Maximized, Window Minimized). Window Focused does work though.
• Attachment: TriggerExample1.PNG [85,276 bytes]
TriggerExample1.PNG
5 days ago (modified 5 days ago)  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Hi Simeon,

Unfortunately many of those applications that run in the background don't use standard "Window created" or "Window destroyed" events for us to fire off. Some of them aren't being created/exited at all, they are just being sent to and from the system tray.

Using the Window Created event won't work here, and unfortunately there isn't much we can do. As you discovered, Window Focused should work, if you can find a work around with that :)

Thanks!
4 days ago (modified 2 days ago)  • #2
User Image
Sim DF
2 discussion posts
Hi Owen,

I see. I don't suppose that something like "Window opened/focused from system tray" is an event DisplayFusion triggers would be able to fire off of in the future?

I'm also wondering if it would be possible to create a script that fires on the "Window focused" event and somehow checks if the window was recently opened from the system tray before resizing and repositioning. Because although the "Window focused" event seems to be reliable, I wouldn't want my windows moving and resizing just when I click on them while they're already visible on my desktop, only when they open initially.

Thank you!
4 days ago  • #3
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
I'll check in with our devs and see if that's possible.

Thanks!
2 days ago  • #4
Was this helpful?  Login to Vote(-)  Login to Vote(-)