View Single Post
Old 08-30-2020, 03:27 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

As a workaround for the moment:
If you use my Ultraschall-API, you can use this code to get screenshots.

But: they are the size of the video-window. So, the bigger the video window, the bigger the screenshot.
And the video-window must be fully visible, not behind other windows or they will be captured as well. And it works only on Windows yet.

Code:
dofile(reaper.GetResourcePath().."/UserPlugins/ultraschall_api.lua")

hwnd = ultraschall.GetVideoHWND()
retval, left, top, right, bottom = reaper.JS_Window_GetClientRect(hwnd)
ultraschall.CaptureScreenAreaAsPNG("c:\\tempvideo2.png", left, top, right-left, bottom-top)
The idea with capturing via gmem could work. I look into it at some point.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote