Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Nicola Farina
27 discussion posts
Hi there,

I need to achieve a specific behaviour for a window: I want that window is positioned at a specific position to top right corner (with some pixels between monitor edges).

The left only setting is not suitable because I use different resolution/dpi monitors so left pixels value can be different. A right value will be much more useful, maybe better with relative values (%).

Another request would be to position this window on second monitor on the left edge, but if no second monitor is found, on the right edge of the first (this would be great for multimonitor setup and when the computer is moved away with only one screen).

Thanks.
Jun 12, 2019  • #1
User Image
Maggew.com
31 discussion posts
Hey buddy, check the "Window Management" section on this page: https://www.displayfusion.com/Help/. I believe, what you desire is "Working with Triggers".

Here is an example of one of my triggers that specifically positions Telegram desktop app on Monitor #2: https://i.imgur.com/AUUYaom.png
Jun 13, 2019 (modified Jun 13, 2019)  • #2
User Image
Nicola Farina
27 discussion posts
Thanks but is not what I intended. Your setup is clear but my point is to set a pixel value from the right side of the screen, because left could be not the same relative when you switch to different resolutions/dpi.

Moreover, I asked for a rule considering a second screen only when available, a sort of conditional rule.
Jun 13, 2019  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We could write up a Scriped Function that does this. How far do you want it to be from the right edge?
Jun 13, 2019  • #4
User Image
Nicola Farina
27 discussion posts
Keith, would be great!

I need to place some tests, but 30 pixel should be the value. Is this script editable by me? I have some experience in software development.

Is scripting a DisplayFusion feature? I'm totally unaware about it (my fault in this case).
Jun 14, 2019  • #5
User Image
Nicola Farina
27 discussion posts
Can I manage conditions within a script? Checking if a second screen is available, for example.

Many thanks.
Jun 14, 2019  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Yep and yep! Import the attached script (Settings > Functions > Scripted > Import). You can set the distances and target monitor ID using the variables at the top.

Hope that helps!
Jun 14, 2019  • #7
User Image
Nicola Farina
27 discussion posts
Keith, this is amazing!

Here my customized script based on your that realize what I originally intended.

Many many thanks!
Jun 17, 2019 (modified Jun 17, 2019)  • #8
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Nice, thanks!
Jun 19, 2019  • #9
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)