Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Dimensi0nless
10 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
User Image
Dimensi0nless
10 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
User Image
Dimensi0nless
10 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
User Image
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
User Image
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
User Image
Dimensi0nless
10 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
User Image
Jolly
16 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.
Jun 9, 2020  • #11
User Image
wilderaven
2 discussion posts
After strugling with similar issues i found this.
DisplayFusion already has what we need. https://www.displayfusion.com/FAQ/?Version=9.7.0.0#textquery
Here we can find "Word Boundary Modifier" and use it on the text field of the windows. Use any word from the window that stays the same like ="Mail" in gmail.

Thats it. Easy and simple solution.
Hope it works for you.
Aug 27, 2020  • #12
User Image
Steven Pribilinskiy
1 discussion post
I've stumbled into that issue as well ::)

I have an idea on how to tackle that but needs some scripting knowledge.

If someone could write a script that would loop over all windows with class "Chrome_WidgetWin_1" and change size of each and every Chrome window with an exception list (e.g. move and resize all except those that have "DevDocs" in Window Text)
Feb 1, 2021 (modified Feb 1, 2021)  • #13
User Image
wilderaven
2 discussion posts
With my solution no scripting knowledge needed.

To make things simpler i am using the Chrome create shortcut with "open as window" option. This gives unique tab to the window and the window description.

Just folow the steps:
.1 Create or edit a "Window Position Profile"
.2 Add opened windows of Chrome as many as you like
.3 Edit each window and on the "Window Text" field put the exclusive text of that window description
ex. "Youtube" or "Mail" "Google Drive" (use the quotes)

I added a Key Combination to execute the "Window Position Profile".

I am using this solution with 10 windows of Chrome on 2 monitors and each have its own position working perfectly.

Hope it helps.
Feb 1, 2021  • #14
User Image
matunuckdestefpr
2 discussion posts
The new Chrome custom window namer function has really simplified this process. The custom window namer allows you to give a unique name to each Chrome window that you have open. To utilize the function right click to the right of the + sign (i.e. open new tab plus sign). Select Name Window... and give a name to the window. Then when you hover your mouse over chrome in the task bar it will display that name. In my case I named my chrome sessions via location i.e. "M2RW" (Monitor 2 Right Window). In my window position profile I enter M2RW as my Window text and now regardless of what tab I have opened it always puts this chrome window/session where I want it. The feature is available in Chrome version 90. If not turned on yet go to chrome:flags in your browser address bar, search for window naming, and click enabled.
Apr 21, 2021 (modified Apr 21, 2021)  • #15
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@matunuckdestefpr: That's great, thanks for the tip! It seems to work well until I restart Chrome a couple of times. On the first restart, the custom name is kept, but on the second one it's lost. Do you see the same behaviour on your machine?
Apr 23, 2021  • #16
User Image
Dimensi0nless
10 discussion posts
Quote:
The new Chrome custom window namer function has really simplified this process. The custom window namer allows you to give a unique name to each Chrome window that you have open. To utilize the function right click to the right of the + sign (i.e. open new tab plus sign). Select Name Window... and give a name to the window. Then when you hover your mouse over chrome in the task bar it will display that name. In my case I named my chrome sessions via location i.e. "M2RW" (Monitor 2 Right Window). In my window position profile I enter M2RW as my Window text and now regardless of what tab I have opened it always puts this chrome window/session where I want it. The feature is available in Chrome version 90. If not turned on yet go to chrome:flags in your browser address bar, search for window naming, and click enabled.


Thanks for the tip! This works much better than the extension I was using before.
Apr 24, 2021  • #17
User Image
matunuckdestefpr
2 discussion posts
Quote:
@matunuckdestefpr: That's great, thanks for the tip! It seems to work well until I restart Chrome a couple of times. On the first restart, the custom name is kept, but on the second one it's lost. Do you see the same behaviour on your machine?


Yes, I see the same behavior. The good news is the chrome sessions/windows keep their names on reboots and also will retain their names if restored by the chrome history command.
Apr 25, 2021  • #18
Keith Lammers (BFS)'s profile on WallpaperFusion.com
@matunuckdestefpr: Nice, good to know!
Apr 26, 2021  • #19
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)