lyckantropen / moonlight_hdr_launcher

Launch anything in HDR mode using Moonlight
MIT License
73 stars 5 forks source link

Scripts on start and close #18

Open bgarnz opened 2 years ago

bgarnz commented 2 years ago

Hi there,

I'd like the ability to run a script before Playnite starts, and when the gamestream session ends.

This is unique to the HDR Launcher, as I (and many others according to my Googling) need to have a dongle plugged in for HDR to be streamable. However, the emulated desktop needs to be focused on with an app (I use Multi Monitor Tool).

This means that I have to use a hotkey to switch to my emulated monitor before starting the moonlight connection, and then switch back to my primary monitor when the session ends. If there was a function to add these commands before and after Playnite starts, that would be wonderful. Thanks!