Save up to 50% in our 2020 summer sale!
Save up to 50% off any of our apps in our 2020 summer sale, including DisplayFusion,
ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!

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
6 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
6 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
6 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
Avatar from Gravatar.com
Delfofthebla
3 discussion posts
Wow this was exactly my problem. I've got both chrome/firefox tabs that are in and out of focus, and I've got everything on different monitors.

My situation is slightly different in that I am on a work PC and on a laptop connected to a docking station. When I unplug from the dock to go to a meeting, everything is lost.

This trigger solution you linked looks good though. It appears as though I can just change the trigger conditions to desktop locked / unlocked, so I've got my fingers crossed.
Feb 14, 2020  • #7
Avatar from Gravatar.com
Mathieu Levesque35385
23 discussion posts
Had a similar issue. Here is some tricks I use.

1) Change title (prefix them) using that chrome plugin:

https://chrome.google.com/webstore/detail/tab-title-tweaker/ofmanndkbkkcjolgenmgioploikhkcaa

For instance, using that rule inside the plugin prefix all pages on gmail.com
with GMAIL:
prefix, *.gmail.com, GMAIL:

2) Launch chrome as an app with no tabs.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=http://www.gmail.com

Use 2 methods, you will get a single window for your gmail, and the title on gmail pages will always be prefixed with "GMAIL:"

Not perfect, but does the trick for me.

Best Regards
Mathieu
Feb 19, 2020  • #8
Avatar from Gravatar.com
Dimensi0nless
6 discussion posts
I actually found a solution that works pretty well.

I ended up using the Window Namer and Restorer extension.

It appends whatever text you want to the beginning of the window (effectively by always appending to the current tab). I use "PM" for my primary monitor, "LM" for left monitor, and then can set up window position profiles based on the window name.
Feb 19, 2020  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Nice workarounds guys, thanks for the tips!
Feb 19, 2020  • #10
Avatar from Gravatar.com
Jolly
3 discussion posts
I wonder if it's possible to write a chrome extension that automatically gives more data that displayfusion can parse to better id and place chrome windows.

It's especially important to me since windows still has the bug that rearranges windows after standby if you use displayport monitors.

Perhaps just appending a serialnumber/mutex id to each new chrome window that's created.
25 days ago  • #11
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply