PDA

View Full Version : Remove a song from the current playlist



puchti1
March 10th, 2006, 03:12 AM
Hi,
I can remove songs from the current playlist with a right-click .

My question:
Can I create a button to remove a song from the current playlist? I can't find any command.

Many thanks,
Swen

Ben S
March 11th, 2006, 04:25 AM
Yes, but it's a little hokey in the designer, because there isn't an option for "execute a generic MediaBridge request".

Use the action 'Next' under Transport Controls. Then double click it so you can change the IR text from "X NEXT" to ...



LX REMOVE "Playing Now" {MP.PlayingNow.Selected}


What that does is execute the "Library eXecute" command against Playing Now, removing the currently selected track.

puchti1
March 13th, 2006, 01:17 AM
Hi Ben,

Thanks a lot. It works fine.

Swen

Ben S
March 13th, 2006, 04:03 PM
Great.

kurtlewis
March 26th, 2006, 04:36 PM
Yes, but it's a little hokey in the designer, because there isn't an option for "execute a generic MediaBridge request".

Use the action 'Next' under Transport Controls. Then double click it so you can change the IR text from "X NEXT" to ...



LX REMOVE "Playing Now" {MP.PlayingNow.Selected}


What that does is execute the "Library eXecute" command against Playing Now, removing the currently selected track.

I did this by creating a button called 'DEL' in the loop index of the now playing list (so every listed track has it's own DEL button), and assigning the following actions to the button:

LX REMOVE {MP.PNCAlbumPath_<LoopIndex>} -1 <-removes specific track from playlist
GAC {MP.PNCScheme} {MP.PNCStart} {MP.PNCCount} {MP.PNCSize} "PNC" <-execute a GAC request

The GAC request refreshes the playlist to visually remove the track....works for this n00b.....ymmv :)

esajesa
March 27th, 2006, 12:59 PM
Any chance to get functions to move items in the playlist up and down as well??? :lol:

//Jens

Ben S
March 27th, 2006, 01:46 PM
It's supported in the current beta, via



NetRemote.ExecuteAction&#40;-10,2,255,'PNX REORDER &#91;oldindex&#93; &#91;newindex&#93;'&#41;;

esajesa
March 27th, 2006, 07:55 PM
sweet Ben!! Thanks!!!!!!

Ben S
March 28th, 2006, 04:13 PM
Not a problem at all.