View Single Post
Old 01-25-2018, 09:22 AM   #301
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,689
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.
Maybe the my_getViewport-function might help you. Justin explained in this thread, how it works:

https://forum.cockos.com/showthread.php?t=195629

If you want to know the dimensions of the Reaper-Window itself within Lua, then you're out of luck. You can get the HWND, but can't get it's properties, unfortunately...
mespotine is offline   Reply With Quote