Title

Message

Confirm

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

Ignore monitor splits when moving window to next monitor

Avatar from Gravatar.com
cbns
12 discussion posts
Is there a way to ignore monitor splits when moving to the next monitor?
I use the hotkeys to move a window to my main one when I want to focus on it, and otherwise have it maximazed in a smaller portion of the other monitor.

Moving to next monitor moves it through the splits with all kinds of different sizes and it comes to my primary monitor the size of the smallest split in the order.

Is there any way to move entire windows between physical monitors and ignore splits?

thanks in advance
Jul 28, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Is the primary monitor split as well? If not, you could setup a custom function (Settings > Functions > Custom Functions > New Custom Function) that moves the window to the primary monitor and maximizes it. I've attached a screenshot for reference.
• Attachment: CustomFunction.png [26,574 bytes]
CustomFunction.png
CustomFunction.png
Jul 30, 2019  • #2
Avatar from Gravatar.com
cbns
12 discussion posts
no, the primary is not split.

i use the win-alt-x command to push a window back and forth, while I switch windows as needed.

so with this method i would need two commands, one to move to primary and one back to the secondary. is that correct?

does it have to maximize? i just want it in the same size, moved over
Jul 31, 2019  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You would need to Custom Functions, yep! It doesn't have to maximize, you can choose "Move Window to Monitor #X" instead of "Move Window to Monitor #X and Maximize."
Jul 31, 2019 (modified Jul 31, 2019)  • #4
Avatar from Gravatar.com
cbns
12 discussion posts
Quote:
You would need to Custom Functions, yep! It doesn't have to maximize, you can choose "Move Window to Monitor #X" instead of "Move Window to Monitor #X and Maximize."


Haven't been able to get this to work the way I would like, as I can only select one of the splits. I wish there was a function move to next physical monitor and ignore virtual/splits.

Use case:
on my secondary monitor i often have lots of static things running in the samze size an position (discord, monitoring software, friends list, chats, email, etc)

When I am focusing on something on my primary monitor (a large website, video in VLC, etc) and want to shift focus to something else, I'll hit the hotkey for move current window to other monitor until I am finished, then move it back.

Since the splits on my secondary are much smaller for my email program/buddy list etc, it resizes them and I have to hit the hotkey once for each split to cycle through them all and get it back on my primary. Then arrives back at my primary as small as the smallest split from the secondary and I have to resize it again. Very annoying

Would it be possible to add this as a feature request? I can't imagine I'm the only one who uses their PC like this
Oct 2, 2019  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, so you just want to move it to the second monitor at the same size it is currently on the primary, then be able to move it back soon after that?
Oct 4, 2019  • #6
Avatar from Gravatar.com
cbns
12 discussion posts
exactly.

ideally with the same keyboard shortcut, as it works now when you don't use splits (ctrl+win+x)
Oct 6, 2019 (modified Oct 6, 2019)  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, try out this scripted function. Hopefully it's what you're looking for!
• Attachment: Move to Next Monitor (ignore splits).dfscript [2,792 bytes]
Oct 7, 2019  • #8
Avatar from Gravatar.com
cbns
12 discussion posts
Do you build a throne (like in Game of Thrones) out of all the awards you get for amazing customer support?

Wow, I don't think someone has ever written a script for me before. How extremely kind and awesome!!!

The script is a HUGE improvement!
I can certianly live with it like this for sure, but for some reason it doesn't return to it's original position when I switch it back.

Executing the script when it is on the primary monitor moves it to the same position on the second (perfect) but when I move it back it ignores it's last horizontal position (all windows are always docked to the left when returned to the primary monitor)

Being a novice programmer myself, I tinkered around in your script to try and remedy this, but to no avail.

I feel awfully greedy asking for more again, but since it is almost perfect.. :-/
Oct 8, 2019 (modified Oct 8, 2019)  • #9
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Haha, thanks for the kind words! When I test the script here, it goes back to the same position on the left monitor as well. I'm testing using Notepad.

Can you send me screenshots of the before and after positions?
Oct 8, 2019  • #10
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Disregard my last message, I found the bug. Try this one out.
• Attachment: Move to Next Monitor (ignore splits).dfscript [3,140 bytes]
Oct 8, 2019  • #11
Avatar from Gravatar.com
cbns
12 discussion posts
Yup, now it is perfect!

Funny, I tried copying that bit in both if and else clauses but it didn't work when I did it. Perhaps you changed something else.

This script is so such a massive improvement to anyone using splits like I do, which I presume many people would if they were more aware of it.

I constantly rant to my friends and family how awesome displayfusion is (at least to those that use more than 1 monitor), but so many don't want to dive deep into settings to look for features.
This feature should be advertised more!

thanks again for this tremendous deed!

p.s. how's the view from up there? haha
Oct 8, 2019  • #12
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad to hear it! No comment on the view from up here
Oct 9, 2019  • #13
Avatar from Gravatar.com
cbns
12 discussion posts
The script stops working when I change the order the of the monitors' ports on the grahpic card, it only works when my secondary monitor is in the primary/first gpu port, but I need my main monitor in the first part so the bios appears on the primary, and the bios will only ever talk to the first port.

Any idea why? THanks in advance!
Feb 23, 2020  • #14
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Can you check to see if the monitor IDs are swapped when you do that?
Feb 24, 2020  • #15
Avatar from Gravatar.com
cbns
12 discussion posts
Yes, they do change. The primary monitor is now ID # 2 instead of 1.

But I see no option to change the IDs in the nvidia CP or in windows.
With my limited selt-taught programming knowledge I tried changing the IDs in the script from 1 to 2, and it sort of works, I can move from ID 2 to 1 just fine, but switching back doesn't.
Feb 27, 2020  • #16
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, try this one out.
Feb 27, 2020  • #17
Avatar from Gravatar.com
cbns
12 discussion posts
Yup. that works.

Odd. If I'm not mistaken, all you did was change all 1's into 2's (except for GetMonitorBoundsByID). I tried that myself, and it didn't work. Perhaps I missed something

Either way, thank you very very much, once again!
Mar 2, 2020  • #18
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yep! I just updated it to change the ID of the primary monitor in the script
Mar 3, 2020  • #19
Was this helpful?  Login to Vote(2)  Login to Vote
<< DiscussionsReply