Page 1 of 1

Screen Resolution

Posted: 20 Feb 2016 15:59
by EdwardM21
Hello,
First off all, thank you for such an amazing app. I've been using for a while now. First time post, as I've come across a problem I can't figure out on my own.

Is there a function I can use in Control UI or script action that returns the maximum x and y coordinates of the entire display? Something similar to getBounds("pattern"), but returns the width and height of the entire screen?

Ed

Re: Screen Resolution

Posted: 22 Feb 2016 19:11
by Martin
Hi,

I think there's no good built-in way to get this information (it's on my todo-list).
You could use Execute Command: wm size to read the physical size into a variable (will be a string like Physical size: 1080x1920). You could use a script to extract the two numbers.

Regards,
Martin

Re: Screen Resolution

Posted: 23 Feb 2016 13:48
by EdwardM21
Thank you Martin.

FYI, on my device, wm size returned Physical size 1600x2560, whereas my device screen resolution is 1532x2560. Close, but not quite the same.