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?
trainwreck
12 discussion posts
Keith, that would be much appreciated.
The function you're currently using, is it a Custom Function? If so, could you attach a screenshot of it?
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]
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!
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?
It should be ok assuming you've installed DisplayFusion on the remote client.