Title

Message

Confirm

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

Move all windows from secondary monitors to primary

Avatar from Gravatar.com
Hy-T3k R3dneck
4 discussion posts
I've been using the "Move All Windows to Current Monitor" to accomplish moving all my windows to my primary monitor. What I don't like about doing this is I have to use the titlebar button from a window on my primary monitor to ensure that everything ends on the primary monitor (because of the current monitor) and even when I do that it unminimizes (does not affect location or size of windows thought) my minimized windows on my primary monitor (or whichever I were to trigger it on).

I saw that I could create a custom function that would move the window to the primary monitor (not current monitor like the function i'm using now does) but that does not move all windows. How can I make it so I can move all Windows located on secondary, tertiary (and so on) monitors to the Primary monitor without affecting any of the windows on the Primary monitor? I did search the discussion forums and didn't find what I'm looking for so I apologize in advance if this was answered somewhere else and I missed it. Any help would be greatly appreciated.
Sep 21, 2018  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There isn't a built-in way of doing that actually, though it's a good idea, so I've added it to our feature request list. In the meantime, it can be done with a Scripted Function. What are the monitor IDs of each monitor, and which monitor ID is primary?
Sep 21, 2018  • #2
Avatar from Gravatar.com
Hy-T3k R3dneck
4 discussion posts
I have monitors 1-3 and 1 is the primary.
Sep 24, 2018  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, could you give this a try?

  • On the DisplayFusion Settings > Functions tab, click the "Download Scripted" button
  • Double-click the script named "Move All Windows to Primary Monitor"
  • Give it a key combination and click OK
  • Optionally, select it, click "Toggle TitleBar Button" (to add it to the caption bar of every application)
  • Click Apply and test it out

Thanks!
Sep 25, 2018  • #4
Avatar from Gravatar.com
Hy-T3k R3dneck
4 discussion posts
It solved part of the problem. I can now click on the title bar button on any window on any monitor (versus having to click on "Move All Windows To Current Monitor" on the primary monitor) and they all move to the primary monitor but it still restores minimized windows on the primary monitor and I don't want minimized windows on the primary monitors to be restored.

Basically, I'm looking to move all windows, not in the primary monitor to the primary monitor and do nothing to the windows already in/on the primary monitor (since they are already there, minimized or not). I hope that makes more sense. Thanks again for your help with this.
Sep 30, 2018  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, there was an issue in the script that I fixed, but this still happens for another reason. When a window is minimized, it returns as being on monitor 0, so I can't tell if it's minimized on the primary or on some other monitor without restoring it first. Are there minimized windows on the other monitor that you want moved to the primary, or are the windows always restored? If there aren't any minimized windows on the non-primary monitor, I can make it so that it only moves the non-minimized windows, which should solve this for you.
Oct 2, 2018  • #6
Avatar from Gravatar.com
Hy-T3k R3dneck
4 discussion posts
"Are there minimized windows on the other monitor that you want moved to the primary, or are the windows always restored?"

Yes, there often are minimized windows on non-primary monitors. In all my setups I've never seen a monitor 0 yet. If monitor 0 is usually the minimized windows on the primary display (my monitor 1) could the script just ignore those windows and I bank on the fact that none of my monitors have had (or hopefully will not have) a monitor ID of 0?
Oct 5, 2018  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The problem is that minimized windows always return monitor 0, regardless of what monitor they're on. However, we may have found a way to resolve this issue. I will let you know as soon as we have a new test build available to try out.

Thanks!
Oct 5, 2018  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, could you try updating to 9.4 Beta 4 and then try this script again? It should now hopefully be able to get the proper monitor ID for minimized windows too.
Nov 19, 2018  • #9
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply