Using KeyPressed to run another app

Hi, I have a few different applications created that all work individually on their own. I’m trying to create one last app to kind of combine them all. I want the new app to run application 1 when I press w, app 2 when I press a, app 3 when I press s, app 4 when I press d, etc. How could I go about writing code to do this?

Hey have a look at ofSystem to use a terminal command to launch the other applications; I’m not sure if this would work with a windows system though.

Also @closet8 I just remembered that something along the lines of the multiWindowExample might work OK too. Its in the folder /examples/windowing/. A single oF “application” can have multiple windows and multiple “sub-applications” running, though I’m not sure if they run in parallel or not.