Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Sorrylol
42 discussion posts
Wondering if this is possible, for example, opening (from DisplayFusion taskbar) 'notepad' on Monitor A, notepad moves to position A1, then opening same program on Monitor B (from DisplayFusion taskbar) 'notepad' opens to position B1. I've been looking at the trigger options and couldn't seem to find a way to also make a dependency based on which monitor a program is opened from as well.
Jun 20, 2020  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You'd need to use a Scripted Function for this. I can provide an example if you like. Could you tell me the X, Y, Width, and Height values for both positions?
Jun 23, 2020  • #2
User Image
Sorrylol
42 discussion posts
Quote:
You'd need to use a Scripted Function for this. I can provide an example if you like. Could you tell me the X, Y, Width, and Height values for both positions?


Yes that would be great!

for reference, three 1920x1080 (24") monitors side by side,

and on the left most monitor, the window position is:
Left: -791, Top: 537, Width: 729, Height: 543.

the right most monitor, the position is:
Left: 1982, Top: 537, Width: 729, Height: 543.

with vertical taskbars being present on both monitors with a size of 62px, both being aligned towards the central monitor.

Thank you.
Jun 23, 2020  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, will do! We're very swamped with support requests at the moment, but I do have this on my list to do :)
Jul 2, 2020  • #4
User Image
Sorrylol
42 discussion posts
Quote:
Ok, will do! We're very swamped with support requests at the moment, but I do have this on my list to do :)


Really do appreciate it, and thanks again.
Jul 5, 2020  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, sorry, one more question. What are the monitor IDs for the left and right monitors?
Jul 9, 2020  • #6
User Image
Sorrylol
42 discussion posts
Quote:
Ok, sorry, one more question. What are the monitor IDs for the left and right monitors?


The left monitor is ID 2 and the right monitor is ID 3
Jul 10, 2020  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, this should hopefully do the trick! Import the attached scripted function, make sure that "Force to monitor" option is disabled for the taskbar shortcut on the DF taskbar, then add this function to a Trigger rule :)

Hope that helps!
Jul 10, 2020  • #8
User Image
Sorrylol
42 discussion posts
Thank you! it works as intended, however, if I wanted to include more dependencies based on other monitors, would this be the appropriate method of doing so:

https://i.imgur.com/BqVmj6h.jpeg

Also, in nvidia surround mode, how would one go about capturing the monitor IDs to use, as I've tried, (1, 1.1, 1.2, 1.3), and they all don't seem to work.
Jul 11, 2020  • #9
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
That looks fine for hard-coded values. As for nVidia Surround it's probably just monitor #1. You can confirm this in the DisplayFusion monitor configuration window though. :)
Jul 13, 2020  • #10
User Image
Sorrylol
42 discussion posts
Quote:
That looks fine for hard-coded values. As for nVidia Surround it's probably just monitor #1. You can confirm this in the DisplayFusion monitor configuration window though. :)


thanks for the reply! I figured out for using such a script with surround mode, to identify the monitors they need to be written as, '101', '102', '103', etc. However, I just have two questions, I've noticed with when using such a script for chrome for example, when removing a chrome tab by dragging it with your mouse, the moment you move it, the tab window snaps to the location of the script as if you were opening a new window all together, is there any way to remove such an occurrence? Also, I was wondering, how would I modify this script to, for a specified monitor, not to do anything. For example, in the same format as, 'if window is opened from monitor 'x', to in fact ignore all other commands, and to do nothing instead, basically a command to do nothing using the same format.
Jul 14, 2020  • #11
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
I was able to modify Keith's original script to hopefully also cover your extra cases. Now the script will exit if you're holding the left mouse button down, which should fix the chrome window dragging issue. I've also provided an example of how you can add to the if statement block to allow the script to do nothing :)

Hopefully it works for you!
Jul 22, 2020  • #12
User Image
Sorrylol
42 discussion posts
Thank you all for your help! this works great. It's awesome to see the capabilities of this software, with each passing day finding more and more new things that can be done with it.
Jul 26, 2020  • #13
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)