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

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:
wmic desktopmonitor get screenheight, screenwidth
Which will be like
ScreenHeight  ScreenWidth
1080          1920
edit : On Mac Os you can use :
system_profiler SPDisplaysDataType |grep Resolution
Which results in something like :
Resolution: 2880 x 1800 Retina
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :

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