It seems someone asked about database imbedding 10 years ago but the topic is closed so I am starting a new post reference to old topic ( Embedded database in JUCE - General JUCE discussion - JUCE ) My question is a little more involved as I have already linked sqlite.c and sqlite.h to enable sqlite interactions - however I am hoping to take it one step further and allow scripts to be pasted into the plugin such as powershell .ps1 and python .py run through the systems installed powershell and python installs if it is available. This plugin is more a management tool than an actual audio effect but it is designed to load into the vst host and perform operations from there. I’m curious if anyone has done this, I’ve seen similar functions perhaps in livespice vst (for spice circuit design) and protplug (for lua scripting). How does everyone approach linking external tools to the JUCE plugin, I am guessing via environmental variables since they may differ on a system to system basis for the version of powershell and python. The aim is to extend the function of the plugin beyond the hardcoded element by tapping into system scripting capabilities through powershell and python, the only element is to send something similar to a CLI or integrate the CLI into the plugin. I’m building specifically for Windows 11, so I am not really worried about cross device compatiblity at this point. Is there some easy way to slap in a command line terminal into a plugin?
Are you just looking for a way to avoid the user having to manually open the system terminal application? Or do you also require some specific interaction with your plugin?
Since the plugin editor window is already a hosted window embedded in a larger application, I have the feeling it could cause problems to embed yet another OS window inside that… if you’re okay with a non-terminal look, you could use a combination of JUCE Text Editor and Child Process to make a command line editor. You might end up with more flexibility too.
