Get resolution of display for stack
Posted: Thu Jun 23, 2016 3:17 am
Hi,
I want to be able to determine the resolution of the display on which ]my stack resides (it could be on one of two physical screens.
I have looked at screenrect however it doesn't seem to match the resolutions of my screens (main display is 2160 x 1440 and the second is 1920 x 1080). When my stack is on the second screen, screenrects gives me the following two lines:
0,0,1440,960
1440,0,2720,720
The loc of my stack is 2593,478
As you can see, screenrects doesn't match the resolution of either of my displays
Not sure what I am doing wrong
Any suggestions would be greatly appreciated
Cheers
Greg
I want to be able to determine the resolution of the display on which ]my stack resides (it could be on one of two physical screens.
I have looked at screenrect however it doesn't seem to match the resolutions of my screens (main display is 2160 x 1440 and the second is 1920 x 1080). When my stack is on the second screen, screenrects gives me the following two lines:
0,0,1440,960
1440,0,2720,720
The loc of my stack is 2593,478
As you can see, screenrects doesn't match the resolution of either of my displays
Not sure what I am doing wrong
Any suggestions would be greatly appreciated
Cheers
Greg