Title

Message

Confirm

Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< DiscussionsReply

Positioning multiple chrome windows with window position profiles?

Avatar from Gravatar.com
Dimensi0nless
5 discussion posts
Hello!

I'm trying to position three chrome windows to three different monitors using a window position profile. Unfortunately, since DF can only control windows based on the exe and the window title text, this is unreliable since it requires having the same tabs open on each of the three windows whenever the profile is loaded.

Does anyone know of a way to change the Chrome window title text so that I can make DF profiles work here? Or some other way to make DF discriminate between the three windows?

Thanks so much for the help!
May 17, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Window Text would be the only way to differentiate them unfortunately. I'm not aware of a way to change the Window Text on the Chrome windows themselves.

What's your usage case? I'm wondering if a Scripted Function might help here.
May 17, 2019  • #2
Avatar from Gravatar.com
Dimensi0nless
5 discussion posts
Hmm, that's too bad.

My use case is that I have three chrome windows (one for each monitor) which I generally use for different things. So, one is usually netflix, one is email etc., and one is random reference material. The issue is that while those tabs will always be open in those windows, they won't necessarily be in focus, which makes the window text unpredictable. Is there anyway to write a script which checks whether a tab is present even if it's not in focus?

Thanks for the help!
May 17, 2019 (modified May 17, 2019)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There wouldn't be a way to check the text for other tabs, unless you wrote a script that focused each window and cycled through the tabs to check each one. That would probably look kind of crazy while the script was running.

Is the issue that the windows are losing their positions, some time after they've been opened, and you want to restore them?
May 17, 2019  • #4
Avatar from Gravatar.com
Dimensi0nless
5 discussion posts
Yes, exactly. Sometimes when my computer wakes up from sleep, the windows will all revert back to the primary monitor. I have a trigger setup so that the position profile is called on wakeup but it won't properly move the chrome windows back.

Too bad there's not an extension for naming Chrome windows. I looked but couldn't find anything.
May 17, 2019  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, there are a couple of other functions that can help here. On the Settings > Functions tab, there are two functions:

Save Window Positions
Restore Window Positions

These use window handles to identify windows, instead of the process/class/text info. If you run the Save function when everything is in the right place, you can then run the Restore function if they get messed up. The catch is that if the windows close/re-open, or the computer is restarted, the positions are lost, because window handles are random/unique each time a window is created.

You can somewhat automate the process as well: Automatically Save and Restore Window Positions on Sleep/Resume

Hope that helps!
May 17, 2019  • #6
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply