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.
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.
We could write up a Scriped Function that does this. How far do you want it to be from the right edge?
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).
Nicola Farina
27 discussion posts
Can I manage conditions within a script? Checking if a second screen is available, for example.
Many thanks.
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!
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