1/29/2025 2:06 PM | |
Joined: 11/23/2007 Last visit: 7/10/2025 Posts: 133 Rating:
|
Hello, I would like to know how to find the runtime resolution settings by script. Best regards |
1/29/2025 5:30 PM | |
Joined: 1/21/2013 Last visit: 9/6/2025 Posts: 4090 Rating:
|
Hi Nico R 14, Please have a look at the GetClientInfo method. Kind regards |
1/31/2025 6:05 AM | |
Joined: 1/21/2013 Last visit: 9/6/2025 Posts: 4090 Rating:
|
Hi Nico R 14, Unfortunately, I am not aware of any documentation that describes when and why you sometimes need to put the objects in a local scope. It is used once in the Tips and Tricks for Scripting documentation. But I do it this way: if the code does not work in global scope, put it in local scope. There are two reasons why your approach may not work. In your FindClientScreenResolution function, ScreenResolutionWidth and ScreenResolutionHeight are parameters that are local variables in the function scope. Therefore, writing to these parameters does not affect the variables that were used to supply the parameters. A second reason is that the GetTagValue method - which I did not know existed because it is not in the documentation - reads a tag value, it will not be possible to write the tag this way. So I would recommend passing Tags objects to the function and doing the tag manipulation inside the function.
Kind regards |
This contribution was helpful to
1 thankful Users |
Follow us on