View Single Post
Old 09-02-2017, 04:36 PM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

There's absolutely no documentation for it, that's the problem. If you google the function name you can actually find it used in a .cpp on (IIRC) Landoleet, Justin's dev server.

I've been able to do this much with it in Lua:
Code:
local _, _, w, h = reaper.my_getViewport(0, 0, 0, 0, 0, 0, 0, 0, 1)

reaper.ShowConsoleMsg("Screen width = "..tostring(w).."\nScreen height = "..tostring(h))
- The 30px missing from Height are my taskbar, I think.

- It has issues with multiple monitors.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote