View Single Post
Old 05-22-2019, 12:36 PM   #10
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 1,210
Default

Quote:
Originally Posted by hopi View Post
Hi Edge... wondering if the AOT will work on a lua window?
I ask because we have some lua's that are essentially like toolbar actions for the MIDI Editor but want them to stay on top of everything...
You can run the same API now using SWS/JS extensions, quick example,..

Code:
hwnd = reaper.JS_Window_Find('Take Commenter' ,true) -- find lua window
if hwnd then
  reaper.BR_Win32_SetWindowPos(hwnd,"HWND_TOPMOST" , 0, 0, 0, 0, 19) -- 19 = SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOACTIVATE.
end
Edgemeal is offline   Reply With Quote