View Single Post
Old 01-25-2018, 02:31 AM   #300
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 7,987
Default

Quote:
Originally Posted by sai'ke View Post
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
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/

Last edited by Xenakios; 01-25-2018 at 06:28 AM.
Xenakios is online now   Reply With Quote