Page 1 of 1

PLS_CURRENT_SELECT_ENTRY 99999 not working.

Posted: 18 Jan 2021 01:53
by phonic
Hi,

I've just got around to testing this command to select the last track in the playlist added using "PLS_CURRENT_APPEND_FILE", and noticed PLS_CURRENT_SELECT_ENTRY 99999 is not selecting the entry and can only get the command working when using the real entry number like 7 not 99999.
Using 999999 results in the following error: ERROR: invalid parameter (must be int between 1 and TrackCount)

Any ideas?"

Re: PLS_CURRENT_SELECT_ENTRY 99999 not working.

Posted: 18 Jan 2021 04:40
by phonic
Update: As a workaround I sent an extra command called "PLS_CURRENT_TRACKCOUNT_GET" to get the number I need.

Re: PLS_CURRENT_SELECT_ENTRY 99999 not working.

Posted: 18 Jan 2021 15:28
by radio42
The macro ${cpltotalcount} should also work, e.g. PLS_CURRENT_SELECT_ENTRY ${cpltotalcount}

But I'll also a to the command the option to specify "PLS_CURRENT_SELECT_ENTRY -1" resp. "PLS_CURRENT_SELECT_ENTRY LAST" to select the last entry directly.

Re: PLS_CURRENT_SELECT_ENTRY 99999 not working.

Posted: 18 Jan 2021 22:03
by phonic
I've updated to "PLS_CURRENT_SELECT_ENTRY \${cpltotalcount}"
That saves an unneeded call.

Thanks!