foo_cmd_playlist
Reply #2 – 2007-03-18 14:58:44
Unfortunately C++ is not my language of choice (I like C#), consequently I will not be continuing development of this to extend it to any other playlist managment functionality such as renaming, removing, adding etc. But, I've put the source cpp file in the zip file above, so if anyone who does like C++ wants to continue development in this area using this as a starting point, please do so, and consider what I have written public domain. I don't like C++ either (I prefer C ;) ), but since I really wanted creating and renaming I have extended your code a bit (thanks for sharing, I would never have started without).foo_cmd_playlist_0.0.2.zip Everyone feel free to upload the file somewhere else. I can not guarantee eternal storage, so please avoid linking to it. Source code is included and public domain. I doubt I will develope the component any further.command line arguments: /playlist-find:"name" activate playlist "name", create if necessary /playlist-new:"new pls" create and activate playlist "new pls" /playlist-activate:"name" activate playlist "name" /playlist-activate#N activate playlist in position N /playlist-activate#playing activate playlist currently playing /playlist-rename:"new name" rename active playlist to "new name" /playlist-move:N set active playlist's list position to N /playlist-move#N move active playlist's list position by N The index number N may have a sign, a negative index is interpreted as right-/bottom-offset. Thus the top list position is 0, the last position is -1. Double quotes around names are only required if the name contains spaces.