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

Thread: Dynamic Sliders

  1. #1
    Constant Bitrate besjr69's Avatar
    Join Date
    Feb 2011
    Posts
    123

    Dynamic Sliders

    This is my first stab at developing a skin. One of the functionalities are working on is to have album art and a progress bar for teh song (slider). I would also like it to show HD, XM or Sirius signal strengths when they are the active source as I've seen in a few skins. This issue is that this is on the menu screen and I'd have to somehow dynamically change the slider code. I've implemented this somewhat witht eh following code:

    S02,220,500,570,29,220,500,29,18,"slider_audio.png ",,60,"BYVAR;ACTIVESOURCEID;<<HDSIGNAL<<RSIGNAL<<X MSIGSAT<<SRSIGSAT<<SONGPOS",""

    I have two issues: 1) the slider does not work for HD Radio or Sirius, but works for MP3s and 2) I've lost the slider control so I can't click it to advance in the song anymore.

    So I attempted to define a persistent variable in the skin.ini (MySldr) and I have it set to update the variable when I select each source:

    "AUDIO||SAVETOSKIN;MySldr;SONGPOS" and "SIRIUS||SAVETOSKIN;MySldr;SRSIGSAT"

    And I change the slider code to read:

    S02,220,500,570,29,220,500,29,18,"slider_audio.png ",,60,$MySldr$,""

    This does not work either. I'm probably bordering on making RR doe something it can't, but conceptually this should work. Can someone give me a hint on what I may be doing wrong.

    Bobby

  2. #2
    Constant Bitrate besjr69's Avatar
    Join Date
    Feb 2011
    Posts
    123
    Well I've found out that it is "SRSAT" instead of "SRSIGSAT". I'm assuming it would be "XMSAT" for XM Radio.

  3. #3
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,255
    Case "xmsat"

    Case "xmter"

    Case "srsat"

    Case "srter"
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  4. #4
    Constant Bitrate besjr69's Avatar
    Join Date
    Feb 2011
    Posts
    123
    Are you saying that I can use a "Case...Select" statement in a skin? Would it look like this:

    Case "SONGPOS"
    S02,220,500,570,29,220,500,29,18,"slider_audio.png ",,60,"SONGPOS",""
    Case "SRSAT"
    S02,220,500,570,29,220,500,29,18,"slider_audio.png ",,60,"SRSAT",""
    etc...

    But how am I linking the case to the defined persistent variable. I've looked at the documentation and I can't find anything on using a "Case" statement.

  5. #5
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,255
    NO

    im showing you code from RR, and i fixed the skincommands.txt file to reflect that

    there is no souch thing as dynamic sliders, i dont want to say what your doing is impossible
    some amazing skinners out there do some things i didnt know rr could do
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  6. #6
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,255
    and for SURE BYVAR is not supported in sliders
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  7. #7
    Constant Bitrate besjr69's Avatar
    Join Date
    Feb 2011
    Posts
    123
    I thought that maybe the second version of the code would work. It says in the documentation that User Variables can be used for the slider. It also says the variable needs to be in a range of 0 - 65535. My variable does not store the value of the CODE variable. It only stores the CODE name. My thinking was that I could use the variable as an alias for the CODE and execute it that way (i.e. S02,220,500,570,29,220,500,29,18,"slider_audio.png ",,60,$MySldr$,""). I've verified the variable is updating using a label. Is there a way to make a user variable act as a 'pointer' to a CODE variable (c syntax MYVAR=&SONGPOS)? I'll keep chugging away. If I find a way to do it I will post back. Thanks for all your help so far.

    Bobby

  8. #8
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,255
    wouldnt you know it

    sliders do support "byvar"

    use that

    byvar;activesourceid;zero<<HDSIGNAL<< blabla
    Last edited by mitchjs; 07-18-2012 at 09:32 PM.
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  9. #9
    Constant Bitrate besjr69's Avatar
    Join Date
    Feb 2011
    Posts
    123
    I didn't want to challenge you on it, but the first example did work. I just want able to use the jump to function on the slider. I may have to do something with the "ONSLDR" event to get the variable to update for songs. I've also noticed that it does not pull the SRSAT and HDSIGNAL. It may be due to sliders being in other skins for their signal strength. Don't know. Gonna try and figure that out as well. Oh, and are there any emulators for Sirius and HD? All of my stuff is installed in the car and would be a pain to remove and test out.

  10. #10
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,255
    the sliders dont care where they at
    most of the sliders you talking about here are read only
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

Page 1 of 2 12 LastLast

Similar Threads

  1. Dynamic buttons and XM...
    By Custommx3 in forum RR Skins
    Replies: 20
    Last Post: 03-14-2011, 04:47 PM
  2. Dynamic Buttons for RR
    By ThunderStick in forum RR Plugins
    Replies: 10
    Last Post: 03-12-2009, 08:00 AM
  3. Sliders!
    By spiro in forum StreetDeck
    Replies: 10
    Last Post: 05-02-2007, 05:22 PM
  4. Help with dynamic commands ???
    By tolisn in forum Road Runner
    Replies: 4
    Last Post: 01-29-2005, 02:29 AM
  5. Dynamic Skins???
    By hd54321 in forum FrodoPlayer
    Replies: 9
    Last Post: 11-01-2004, 04:57 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
  •