Screen Resolution

Post your questions and help other users.

Moderator: Martin

Post Reply
EdwardM21
Posts: 2
Joined: 20 Feb 2016 15:44

Screen Resolution

Post by EdwardM21 » 20 Feb 2016 15:59

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Screen Resolution

Post by Martin » 22 Feb 2016 19:11

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

EdwardM21
Posts: 2
Joined: 20 Feb 2016 15:44

Re: Screen Resolution

Post by EdwardM21 » 23 Feb 2016 13:48

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.

Post Reply