This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Requirements: Have at least one Powershell extension installed and enabled | |
| # If you don't have any installed, you can install one by opening this | |
| # link in your browser playnite://playnite/installaddon/Links_Sorter | |
| # Step 1: Paste this part of the script while Playnite is active in a Powershell window | |
| # It may be necessary to do it a few times since it sometimes can give an error | |
| # It has succeded when it shows a dialog in Playnite | |
| Enter-PSHostProcess -Name Playnite.DesktopApp | |
| $PlayniteApi = (Get-Runspace)[-2].SessionStateProxy.GetVariable("PlayniteApi") | |
| $PlayniteApi.Dialogs.ShowMessage("Connected to Playnite session") |