02-16-2020, 09:24 PM
(This post was last modified: 02-16-2020, 09:25 PM by DonkeyOatay.)
I agree wiith darklinkpower but given the lack of response it looks like the OP has disappeared unfortunately.
Is anyone else able to say what would need to change in order for the script to mark as uninstalled rather than remove?
The bit of the script that I believe removes the game is:
$buttonRemoveSelected_Click={
$num = 0
foreach ($item in $checkedlistbox1.CheckedItems)
{
$PlayniteApi.Database.Games.Remove($item.Id)
$num = $num + 1
}
$formRDGScriptMenu.Close()
$PlayniteAPI.Dialogs.ShowMessage("Removed " + $num + " games of the list")
But having no experience of programming or APIs I have no idea what to put in the place of "PlayniteApi.Database.Games.Remove".
Looking at the documentation the field appears to be 'IsInstalled' but that's as far as my abilitities take me.
Is anyone else able to say what would need to change in order for the script to mark as uninstalled rather than remove?
The bit of the script that I believe removes the game is:
$buttonRemoveSelected_Click={
$num = 0
foreach ($item in $checkedlistbox1.CheckedItems)
{
$PlayniteApi.Database.Games.Remove($item.Id)
$num = $num + 1
}
$formRDGScriptMenu.Close()
$PlayniteAPI.Dialogs.ShowMessage("Removed " + $num + " games of the list")
But having no experience of programming or APIs I have no idea what to put in the place of "PlayniteApi.Database.Games.Remove".
Looking at the documentation the field appears to be 'IsInstalled' but that's as far as my abilitities take me.