Playnite Forums
execute command on closing fullscreen playnite? - Printable Version

+- Playnite Forums (https://playnite.link/forum)
+-- Forum: Playnite (https://playnite.link/forum/forum-1.html)
+--- Forum: General (https://playnite.link/forum/forum-2.html)
+--- Thread: execute command on closing fullscreen playnite? (/thread-781.html)



execute command on closing fullscreen playnite? - Giodude - 08-19-2021

Hi, so i made a custom batch file that closes desktop playnite and launches it in fullscreen with my monitor in 60hz mode. This is because I use playnite for game streaming, and running games above 60fps causes stutter. Issue is I want my refresh rate to go back to 144hz when I exit playnite, is there a way to script this so I don't have to keep executing the script manually? Thanks!


RE: execute command on closing fullscreen playnite? - Crow - 08-19-2021

Just wait for Playnite process to exit in your script since you are already starting it and then change refresh rate back. Or create extension and run code on OnApplicationStopped event. https://playnite.link/docs/tutorials/extensions/events.html?tabs=csharp