I'm trying to design an app launcher system, and have figured out how to make the launcher run an app at path/app.exe, as well as attaching a listener to that process to detect when it has been closed.
Obviously, during this process, the launcher will lose focus as it moved into the background. Is there a way for it to continue to listen for keyboard input and perform an action in the background. It would be ideal if the launcher can then pass information to the running application, all without the application losing focus.
It is worth noting that both the launcher and the app will be made in Unity with c#, so if there is a solution that involved the app setting up some sort of listener for the launcher then that would be good, but for security reasons, the launcher must be the process that listens for the keyboard press action.