View Single Post
Old 01-20-2018, 02:17 PM   #296
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Lawrence View Post
You guys are way ahead of me obviously, but I had the same thought and had (in other languages) done much the same, maybe run a loop until the hwnd exists, to trigger something after load.

Am I wrong in assuming (different topic) that the C++ API is no longer really needed in Reaper now with all of the various scripting choices or are there still things that only C++ approach can handle?
It's not as easy as running a loop because running such a loop in the GUI thread (the extension plugins are loaded in the GUI thread) would block the GUI event loop from running and possibly prevent creating the windows in the first place. (It could be done from another thread but that causes additional problems to deal with.)

Many advanced things still require writing C++ plugins, the scripting API is not a complete replacement.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote