Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Playlist Saving Help please...

  1. #1
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1

    Playlist Saving Help please...

    Ok, I have created a playlist loader "Menu". When the "Load Playlist" button is pressed, it displays the list of playlist's (defined in the RR.ini) on a pop-up menu. I then click on one and click select, it loads the list in sucesfully.

    That Parts is working great.

    Now I have another button to save a playlist using the "SAVELIST" command, and again saves it to the location defined in the rr.ini. When that button is pressed it pop's up the OSK to type a name to save the list to. This is also working fine.

    Now to figgure this out

    I want to press the SAVE button, and pop up another "menu" screen that will show the playlists that are currently saved.

    What I want to then do, is select one of the playlists in that list, and add the song/songs to one of those existing playlist.

    This is physically possible, as if I select a few songs, and click the "Save Playlist" button, the OSK comes up, if I type a name that is already a playlist, it will append the songs to that existing list. That's perfect, as I do want to append, and not replace.

    So far, I just duplicated the skin for the load list, and it displays the lists of playlist no problem when the SAVE button is pressed. I tried altering the button code, that was "SELECT" for loading the list, and changing it to "SAVELIST" and it is not working.

    What code would I need to do this, or workaround to make this function? I also want to put a button on the Save List menu, to create a NEW playlist if the one I want is not already created. This is also neccessary for creating the playlists in the first place. The problem I see here, is, from what I understand, a "Double menu screen" can not occur in Road Runner. (The save list is a pop-up, then to get the OSK, that would be the 2nd).

    If the above it a bit confusing, I am sorry. It's hard to explain.

    The bottom line is, I want to be able to press a "Save Playlist" button, have a pop-up screen, that will allow me to select a current playlist, or a new one to save the songs to.

    ANy help with this is greatly appreceiated!

    Here is the LOAD PLAYLIST "Pop-Up Menu". My intent is to make one just like it for saving, with the addition of a "NEW" button, if the list does not exist already.


    On a side note.Where is that "CD page" icon coming from? is that something that can be changed in RR? I have changed the default folder and track icons(You can see the folder icon in the above screen cap), and have those in my skin directory, but can't find reference to this icon anywhere in the skincommands.txt or anywhere else for that matter.....





    .
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  2. #2
    FLAC Chuck's Avatar
    Join Date
    Sep 2003
    Location
    Ellicott City, MD
    Posts
    1,671
    The open menu from a menu part is a little tricky


    With a OSK or NUMOSK
    Try using the new commands "OSKTOCMD" or "NUMOSKTOCMD"

    Button on menu
    "EXIT||OSKTOCMD;MYVAR;REOPENMENU"

    This will EXIT the menu your in then set MYVAR then after entered will run the REOPENMENU

    “REOPENMENU”,”Menu;SAVEMENU.skin”



    Here is how I do it for one menu to menu
    Button in menu1
    “EXIT||MENU;menu2.skin”

    Button in menu2
    “EXIT||MENU;menu1.skin”
    2001 S10 ZR2

    Chucks Skin - to old

  3. #3
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1
    Thanks Chuck, that will help when I try to do the OSK from the menu if it's open. I have used similar code on my iGuidance AutoIt Script Menu as a workaround, in this case, closing the menu before trying to execute a command. I have the following code on that button:
    "CANCEL||RUN;C:\Program Files\Road Runner\IGScripts\Gas.exe". Normally, pressing a button on a menu screen, will close it. Not the case when trying to execute an external command however.

    That part is not too hard, The tricky part I can't figgure out, is a matter of trying to "incercept" the OSK when pressing a button with the SAVELIST command, open the menu to select an EXISTING playlist from a LISTBOX.

    If the playlist wanted, does not exist yet, the just clicking a button on that menu screen to do the normal OSK to enter a playlist name. Thats where the "exit||...| will come into play.
    Something like:
    "EXIT||SAVELIST"
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    As savelist can take a parameter (check skin commands.txt), You can do something like "SAVELIST;$PLAYLISTPATH$$LISTTEXT$" should save the playlist to the playlist folder with the name of the selected item on the current viewed list. If you'd wish it to be "overwriten" you could simply delete the file first using similar syntax.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  5. #5
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1

    Thank you!!!!

    Guino, as always You The Man! I knew it had to be something simple, and I must have just overlooked the parameter in the Skincmds.txt.

    EDIT: Ok, that didn't work Any other suggestions?

    Also I just checked the skincommands.txt to see if I overlooked something, there are 2 references to the SAVELIST command:
    "SAVELIST" - This saves the current playlist into the PLAYLIST_PATH specified in RR.INI
    and:
    "SAVELIST" - This allows you to save a playlist to disk. You specify the full path of the playlist on disk.
    Example: "SAVELIST;C:\Test.m3u"
    No mention of being able to pass parameters to the command.



    .
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  6. #6
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1

    Question Any More Suggestions? Guino Perhaps :)

    Any more suggestions, this is the one final thing I am trying to figgure out. I was able to have a button on the "Save Playlist" menu Pop-Up screen. The following code worked to call the OSK from an existing Pop-Up Menu.

    Code:
    "EXIT||SAVELIST||SETPATH;$PLAYLISTPATH$""
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    sorry that was a common overlook from my side, the command will work if you set the listtext variable first (listtext is a label code, so it needs to be copied into a variable first):
    "SETVARBYCODE;LISTTEXT;LISTTEXT||SAVELIST;$PLAYLIS TPATH$$LISTTEXT$"
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  8. #8
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1

    Advance Playlist Control

    Ahhhh by looking at your first code, I assumed that was some sort of back-end process of that command done automatically or something.

    That did it that time, and it is working perfectly!

    It has helped me create one of the better playlist managers that I have seen in any of the skins that I have downloded at least.

    To sum up how I put all this code to use:

    I created a "save playlist" button on my player screen, that links to a pop-up menu screen. On that screen is a list box, "Jump to letter buttons for large ammounts of playlists) Butons to scroll, page jump ect, as well as a "New Playlist" button, and a "Delete Playlist" button.
    Selecting a name in the list, and then clicking save will append to that playlist. Clicking New will open the OSK to create a new playlist. After either is done, a pop-up dialog confirms that the playlist was sucessfully saved and dissappears 1 second later. It then updates/reloads the list of playllists. If delete was selected, another pop-up asks if you are sure you want to delete [Playlist-name] playlist?

    Just one more button to add... "Replace Playlist", which will delete the selected Playlist, and recreate it with the current on the fly playllist songs. Should have that done in a few minutes now...

    Thanks for all the help!!!!
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  9. #9
    Constant Bitrate
    Join Date
    Mar 2007
    Location
    manchester, UK
    Posts
    145
    this is exactly what i want to do.

    do you have the code you used?

    can you mail it to me?

    wilgartw at hotmail dot co dot uk

  10. #10
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1
    The code I used is Guino's example in post #7, a couple posts back. If there is something further you need, feel free to download the skin and dissect it and use what you need.
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

Page 1 of 2 12 LastLast

Similar Threads

  1. How About...A Virtual CD Changer
    By chuckster in forum Road Runner
    Replies: 33
    Last Post: 09-23-2011, 02:03 PM
  2. Replies: 10
    Last Post: 09-03-2007, 10:19 AM
  3. Audio CD Auto-play Playlist NOT updated
    By layanto in forum RR Bug Tracker
    Replies: 2
    Last Post: 01-03-2006, 03:40 PM
  4. Playlist and save bugs
    By tolisn in forum RR Bug Tracker
    Replies: 6
    Last Post: 04-04-2005, 11:16 PM
  5. playlist necessary? (philosophical)
    By crippy in forum Software & Software Development
    Replies: 22
    Last Post: 10-16-2003, 02:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •