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

Thread: Set label on a skin from an .ini file

  1. #1
    Low Bitrate jumbodogs's Avatar
    Join Date
    May 2007
    Location
    CT
    Posts
    94

    Set label on a skin from an .ini file

    I have an autoit script that downloads podcast from a list of sites that I have set in an .ini file. Is there a way to have RR read that .ini file and label the buttons for the .skin file I am making.

    [IMG][/IMG]

  2. #2
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,617
    Make it an include file.

    ie

    INC,podcast.ini


    you will need

    /DISCARDABLE

    at the beginning so it rereads it on each load of that screen

  3. #3
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    Do you have an example of that? I'd like to see how to include an ini file and how RR deals with it. Another option is have the autoit script do some SETVAR commands to RR.
    CarPC in my 82 Camaro. Dual core atom, M4-ATX, 7 lilliput, bu353 GPS, Reborn skin, punch 40/100ix
    MediaLaunch for RR
    Online Check for RR
    Locker for RR

  4. #4
    Low Bitrate jumbodogs's Avatar
    Join Date
    May 2007
    Location
    CT
    Posts
    94
    Here is the .ini that the script uses:
    Code:
    [Settings]
    Podcasts = 3
    Location = C:\Documents and Settings\Administrator\My Documents\Downloads\temp\
    
    
    
    
    [Sites]
    Mike & Mad Dog = http://www.wfan.com/pages/podcast/801.rss
    CNN-News = http://rss.cnn.com/services/podcasting/newscast/rss.xml
    Mike & Mike = http://sports.espn.go.com/espnradio/podcast/feeds/itunes/podCast?id=2445552
    Today Show = http://podcast.msnbc.com/audio/podcast/MSNBC-TDY-PODCAST-MP3.xml
    Site5 = http://feeds.ziffdavis.com/ziffdavis/dltvpodcast
    I like to label the buttons in the skin from the [sites] section
    Button 1 = Mike & Mad Dog
    Button 2 = CNN-News
    and so on

    Could you show example of how to do that.

    Thanks for the help

  5. #5
    Low Bitrate jumbodogs's Avatar
    Join Date
    May 2007
    Location
    CT
    Posts
    94
    Another option is have the autoit script do some SETVAR commands to RR.
    How is that done?

  6. #6
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,617
    OK, scrap the include method, I thought you were getting the AI script to create labels.

    I can think of two ways, one is the SETVAR method, for which you will need to look at how to get your script to interface with RR.

    or you can create Variables in skin.ini and change the value of them from your AI script.

    skin.ini
    Code:
     
    podlabel1=
    podlabel2=
    podlabel3=
    podlabel4=
    and then in your skin

    L,x,y,w,h,"$podlabel1$"


    etc.

  7. #7
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote Originally Posted by jumbodogs View Post
    How is that done?
    http://www.mp3car.com/vbulletin/rr-f...cation-rr.html
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  8. #8
    Variable Bitrate chevyn8's Avatar
    Join Date
    Oct 2006
    Location
    small town nebraska
    Posts
    263
    Lots of ways to do this, depending on how your script looks.
    $rr = ObjCreate("RoadRunner.SDK")
    $rr.Execute("SETVAR;BUTTON1;Mike & Mad Dog")
    $rr.Execute("SETVAR;BUTTON1SITE;$mikemaddog")
    With $mikemaddog being the var you use when you pull that item from the ini.
    Then use $BUTTON1$ as a label, etc...
    CarPC in my 82 Camaro. Dual core atom, M4-ATX, 7 lilliput, bu353 GPS, Reborn skin, punch 40/100ix
    MediaLaunch for RR
    Online Check for RR
    Locker for RR

  9. #9
    FLAC
    Auto Apps:loading...
    EL CAMINO's Avatar
    Join Date
    Jul 2005
    Location
    upland california us
    Posts
    1,283
    if you have the same number of sites all the time i would do what enforcer and chevy are suggesting, but if the number is changing somehow, try to use a custom list with a single button to load the selected site, that way you can see all the site at once pick one, and hit load. i think is a lot easier that way.

  10. #10
    Low Bitrate jumbodogs's Avatar
    Join Date
    May 2007
    Location
    CT
    Posts
    94
    Thanks for the replies. I think what chevyn8 suggested should work but I'll try to explain what my script does a little better.

    The script downloads the set amount of podcasts from each site that is listed in the .ini file then stores the .mp3 files in sub folders based on the name that is given in the .ini file.

    Something like this
    C:\PodCasts\Mike&MadDog\Mike&MadDog1.mp3
    Mike&MadDog2.mp3
    C:\PodCasts\CNN-News\CNN-News1.mp3
    C:\PodCasts\CNN-News\CNN-News2.mp3

    and so on. When the script runs it gets all the podcast at the same time.

    The reason for not just labeling the buttons manual is I thought if anyone else wants to use this they could just setup the .ini file for the script and not have to touch the .skin file. Anyways I will post the script if anyone wants to play with it. It still needs some more work .... only works on 5 of the 6 sites I want. I need to get a better understanding of StringRegExp in autoit.
    Attached Files Attached Files

Page 1 of 2 12 LastLast

Similar Threads

  1. Simplistique Skin Release - download and screenshots
    By lloydy in forum RR Released Skins
    Replies: 501
    Last Post: 05-04-2013, 10:58 AM
  2. problems with navigation in streetdeck
    By customaudioman in forum StreetDeck
    Replies: 3
    Last Post: 01-25-2008, 12:46 PM
  3. Indexing music in 1.0.9.8 Failed
    By hovalistic in forum StreetDeck
    Replies: 0
    Last Post: 07-07-2007, 11:19 AM

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
  •