Save up to 50% in our 2017 Summer Sale!
Save up to 50% in our 2017 Summer Sale! DisplayFusion, ClipboardFusion,
FileSeek, iTunesFusion, LogFusion, TrayStatus, and VoiceBot are all on sale!
<< DiscussionsReply
Custom Function Span two monitors
Hizwerks' profile on WallpaperFusion.com
I'm running a system with three monitors. I've created a custom function to span a window across two monitors. Is there a way make this toggle like the "Span Window Across all Monitors" function? Is this something I would need a script to do? Currently I run the function and the window spans two monitors. I would like to be able to run it again and have the window return to its previous state. Thanks.
Jan 10, 2017  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Binary Fortress Administrator
 Binary Fortress Administrator
You would need a Scripted Function to do that, yep. I'll see if we can whip up a sample script for you
Jan 11, 2017  • #2
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
Binary Fortress Administrator
 Binary Fortress Administrator
I put a scripted function together that should work for you. Here's how to get it into DisplayFusion:

  • Download the file attached to this post
  • Open this DisplayFusion Settings window to the 'Functions' tab
  • Click the 'Add Scripted' button
  • Copy the code from the file downloaded in the first step into the window that pops up
  • Give the script a key combination (if you want), then click OK to save and close the script, then OK again to close the Settings window and apply your changes

I hope this works for you!
• Attachment: Toggle Window Span Two Monitors.txt [2,933 bytes]
Jan 13, 2017  • #3
Hizwerks' profile on WallpaperFusion.com
AWESOME!! Thanks guys. I had to adjust the dimensions but this works perfectly.
Jan 13, 2017  • #4
DigiVie
Hi Thomas,

I tried to modify the 'Rectangle targetSpanbounds' values to work with my 4-monitor (2x2) configuration using Dell U2415's (1920x1200 - very sweet displays).

I want to span my right-and 2 monitors for reading PDF's.

I changed the values to (1920, 0, 1920, 2400), and the result is it shows up maximized on the bottom right monitor - my goal is to have the right 2 stacked monitors spanned (for a total resolution of 1920w x 2400h.

I was assuming the first 2 values are the lower-left starting point for the boundary (X,Y axis), and the 2nd 2 values are the width and height.

What might I need to do to make this work?

Thanks!

David
___
Cheers,
David
Jan 20, 2017  • #5
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
Binary Fortress Administrator
 Binary Fortress Administrator
It sounds like you set up the script correctly, but it could be that on your system your monitor bounds are set up differently. If you send me your troubleshooting info, it will contain the information I would need to set the script up for you :). Here's how to get that info to me:

  • Open the Settings > Troubleshooting tab
  • Click the "Copy to Clipboard" button
  • Paste the text into a text file (please don't paste the text directly into your reply, the formatting gets garbled and makes it difficult to parse)
  • Reply with the file attached

Thanks!
Jan 23, 2017  • #6
DigiVie
Thanks for looking at this!

File attached.

Cheers,

David
___
Cheers,
David
• Attachment [protected]: DF_troubleshoot.txt [105,185 bytes]
Feb 10, 2017  • #7
DigiVie
I figured it out.

Using these targetspanbounds: 1921, -1210, 1852, 2380

I've got it filling my right 2 screens as I want it to. My top-right monitor has it's taskbar on the right, which takes up 68 pixels or so (hence 1852 = 1920-68), and the bottom-right monitor has the taskbar on the bottom, and is about 30 pixels high.

The only wierdness here is I had to go to -1210 and 2380 to have it span from the top of the top-right monitor, which _should_ only be -1200.

Whatever the case, it's working as I want, so thanks!
___
Cheers,
David
Feb 10, 2017  • #8
Was this helpful?  Login to Vote(1)  Login to Vote
<< DiscussionsReply
Visit DisplayFusion on FacebookVisit DisplayFusion on TwitterVisit DisplayFusion on Google+Visit DisplayFusion on LinkedInSearch for DisplayFusion on RedditFollow DisplayFusion on RSSVisit DisplayFusion on Instagram
©2017 Binary Fortress  •  News  •  Discussions  •  FAQ  •  Support  •  Privacy  •  ToS