I figured it out with an ahk script. woohoo. i need a beer. ok this is what you do if you want to run retroarch and load a partials.txt file pointing to your emulator window when any game launches in launchbox. this is per system platform like ps1, ps2 etc and not for each individual game. First, load launchbox. go to tools, manages emulators and double click the emulator you want to manage. click on running script. In here you’ll enter commands for an ahk script that will run retroarch and load the partials.txt file as content for your selected emulator. It will look like this:
Run, “path to retroarch exe” -L “path to windowcast core” “path to partials.txt”
for me it looks like this as an example:
Run, “F:\Game Programs\Emulators\RetroArch\retroarch.exe” -L “F:\Game Programs\Emulators\RetroArch\cores\wgc_libretro.dll” “F:\Game Programs\Emulators\RetroArch\system\windowcast\partials-duckstation.txt”
If you save a shader preset per game in this instance it will save a shader preset for that emulator based of your partials.txt The only thing I couldn’t figure out is an ahk script to select what window will be focused on. good thing though is all you have to do for now is click “Ctrl-Alt-T” to switch between retroarch and the emulator window. Also duckstation and pcsx2 have game windows of the names of the game but you can get around this so it will work with any game. For example if your using the current version of standalone duckstation just make sure this is in your partials for that emulator. Qt661QWindowIcon pcsx2 is the same because they are both based on the same Qt gui.