Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

User Image
trainwreck
12 discussion posts
I have a function that resizes a certain window based on a percentage. THis works fine on my laptop which has a resolution of 3840x2160 but when I hook up to my ultrawide monitor which has a resolution of 3440x1440, it's too big.

Is it possible for a function to be aware of the resolution of the screen? That way, it could apply one set of percentages when I'm working on the laptop (natively) and a different set of percentages when I'm on the monitor? Does this have to be done custom in a script?
Sep 19, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You could do that with a Scripted Function, yep! I'll see if I can write up a sample script for you next week :)

Thanks!
Sep 20, 2019  • #2
User Image
trainwreck
12 discussion posts
Keith, that would be much appreciated.
Sep 24, 2019  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
The function you're currently using, is it a Custom Function? If so, could you attach a screenshot of it?
Sep 24, 2019  • #4
User Image
trainwreck
12 discussion posts
One is the Function and the other one (probably not necessary) shows the triggers that call it. I also have a button on my mouse to call it.
• Attachment [protected]: screenshot - 2019.09.24 - 14.03.15.png [56,422 bytes]
• Attachment [protected]: screenshot - 2019.09.24 - 14.03.37.png [26,192 bytes]
Sep 24, 2019  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ok, could you try the attached sample function? You can import it on Settings > Functions > Scripted Functions.

You can modify the percentages by adjusting the multipliers for the width/height (e.g. 0.50 is 50%, you can change it to 0.60 to make it 60%).

Hope that helps!
Sep 26, 2019  • #6
Renzo Peduzzi's profile on WallpaperFusion.com
Does that script als work when installed on a terminal server (azure virtual desktop)? as far I understand it's a bit tricky to get the accessing client's properties, not?
Jul 2, 2022  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
It should be ok assuming you've installed DisplayFusion on the remote client.
Jul 11, 2022  • #8
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)