Quote:
Originally Posted by sai'ke
Is there a way to get the resolution of the hosts main screen from LUA? I want to spawn a window in a specific corner of the screen.
|
Not the greatest solution but you could call this OS command on Windows and parse the resulting text:
Code:
wmic desktopmonitor get screenheight, screenwidth
Which will be like
Code:
ScreenHeight ScreenWidth
1080 1920
edit : On Mac Os you can use :
Code:
system_profiler SPDisplaysDataType |grep Resolution
Which results in something like :
Code:
Resolution: 2880 x 1800 Retina