Quote:
Originally Posted by Lawrence
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.