Quote:
Originally Posted by tack
As far as I know. Did the snippet I posted earlier look right to you? I also called JS_Window_GetParent() on the hwnd returned there and tried to attach the pin to that hwnd with no result. And GetParent() on that hwnd returns nil, so that's definitely the top-most window.
Or even a brute force approach had no effect:
Code:
gfx.init('blargh!', 640, 480, 0, 100, 100)
local hwnd = reaper.JS_Window_Find('blargh!', true)
while hwnd do
reaper.ShowConsoleMsg('Attaching pin to hwnd: ' .. tostring(hwnd) .. '\n')
reaper.JS_Window_AttachTopmostPin(hwnd)
hwnd = reaper.JS_Window_GetParent(hwnd)
end
function go()
gfx.update()
reaper.defer(go)
end
go()
Yes, please, can others on Win10 test that?
|
Not followed this whole issue - but just copied that snippet into a new reascript file and ran on Win10Home (v1809) latest Reaper dev release + latest JS API 0.989.
Pin shows up fine for me (although it tries to attach it to two hwnds).
Code:
Attaching pin to hwnd: userdata: 0000000000180CCE
Attaching pin to hwnd: userdata: 00000000002B0E54