

Get Console like experience with Playnite using Dual shock 4 or Dual shock 5
Basically windows does not support DS4 controller or DS5 out the box so you have to use DS4 windows for that .
Now using this script you can automate launching DS4 Windows, and exit it on playnite's Exit it seems very cool so i thought i would share it you guys.
Place you ds4 windows install in the C:\Program Files (x86)\ or change the script path.
Do these settings in DS4 windows:
Hide Controller so you don't get double input.
Tick> Start minimized
Close Minimizes.
Then go to playnite > Setting > Scripts > Application scripts>
paste this in the "Execute on application start"
if (-not (Get-Process "DS4Windows" -ErrorAction SilentlyContinue)) {
Start-Process -FilePath "C:\Program Files (x86)\DS4Windows\DS4Windows.exe"
}
Paste this in the "Execute on application close"
Stop-Process -Name "DS4Windows" -ErrorAction SilentlyContinue
Now when ever you start Playnite it will launch DS4 windows with itself saving you extra step.
and when you close the Playnite it will kill the ds4 windows.
Hiding DS4 controller option needs the Ds4 windows to be ran as administrator, for that either run playnite as an admin or Accept the ds4 UAC prompt.