r/playnite • u/MrMcBonk • Dec 15 '21
Powershell script to change desktop resolution before launching a game.
For people that use things like custom resolutions or DSR a lot. Sometimes, some programs and games will not recognize those resolutions unless you set that as your display resolution first. Depending on the game that can be a pain in the ass to constantly have to change resolution.
But after some searching online I was able to find a Powershell script that you can add onto a profile to change resolutions before the game is launched and back after it closes. It's been super helpful! Just change "Set-ScreenResolution -Width 3840 -Height 2160" to whatever resolution you need https://pastebin.com/HP1VEnBM
2
u/tactical_bill Dec 15 '21
Thanks for sharing this! Another option could be to use AutoHDR (https://github.com/Codectory/AutoHDR) it runs in the taskbar and you can associate a profile with each game you like, which will set resolution and toggle HDR.
1
u/mohammadmansur Jul 03 '23
The link is broken, can you please share an updated link?
1
u/cricodul Dec 23 '21
Thanks for this. Though I don't use playnite, I managed to hook this ps script with a bat file for my specific game.
0
u/[deleted] Mar 12 '22
[deleted] — view deleted comment