Announcement

Collapse
No announcement yet.

more than 20 steps for sliders?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • more than 20 steps for sliders?

    Is there a way to make a slider with more than 20 steps? Maybe by way of a variable slider? I've read the skin commands.txt file and searched here as much as I can, but I can't find much current info on how to implement a variable slider.

    guino mentions the possibility of increasing slider steps here....
    http://www.mp3car.com/vbulletin/515588-post3.html
    but it looks like standard sliders are still limited.

    I want to create a slider that could display something like speed (from a GPS) in 1 mph increments or engine RPM in maybe 10 rpm increments without resorting to Flash.

    Thanks....
    Mark
    --------------------------------
    Project completed! (almost)

    My Truck as featured in Custom Classic Trucks magazine.

  • #2
    there was some talk about progressive sliders, but don't know if it's been implemented yet.

    as for variable sliders:
    click
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

    Comment


    • #3
      I'm pretty sure you can have up to 65535 steps if you wanted to:

      Originally posted by skincommands.txt
      "$VARNAME$" - Variable Slider. This Makes a slider from a variable (SDK/Plugin/Scripting supporT).
      The Slider value is set/read to/from a RR variable that you can set with SETVAR and use in commands.
      The Range of values is from 0 to 65535 -- Use EVAL on the variable to convert ranges if needed. If the Slider is clicked/changed a "ONSLDVARNAME" event is triggered.
      To get a rounded number on your slider, you would use the \ for the divide symbol rather than / which gives the decimal product as well.
      So I think you would take the maximum speed your vehicle can travel, and divide 65535 by that number to get the "distance" each step travels.
      Example, if you had your limit at 150 MPH, you would have each mph as 437 steps. So out of 65535 total available steps, at 15 mph, the slider is at step 6555, which would be 10% of your "top" speed, at 35, the slider is at step 15,295 which is about 23% of your top speed.

      I hope this makes sense.
      2007 Chrysler PT Cruiser TE
      Car PC Progress:
      Planning.......[---------X-] 95%
      Parts...........[---------X-] 90%
      Fabrication...[---------X-] 90%
      RR Skin........[---------X-] 95%
      View my
      Worklog
      Road Runner Skins
      Website
      Favorite thread EVER!

      Comment


      • #4
        yea. but your sliders wont update if you use custom sliders.

        for example: a custom volume slider. if i increase the volume via a button or a griffin powermate or whatever, the slider will not move. it will only move if you change the volume using the slider itself. make sense?

        i wouldnt call it a bug, but its certainly something id like to see fixed in the future. i started several threads on this but it was never fixed........

        Comment


        • #5
          have you tried to set a timer event? something that after a certain amount of time eval's the slider's position against the variable it's representing?

          I've got a seperate media keypad on the test laptop with volume controls, and when I use those to change the volume the slider updates.
          2007 Chrysler PT Cruiser TE
          Car PC Progress:
          Planning.......[---------X-] 95%
          Parts...........[---------X-] 90%
          Fabrication...[---------X-] 90%
          RR Skin........[---------X-] 95%
          View my
          Worklog
          Road Runner Skins
          Website
          Favorite thread EVER!

          Comment


          • #6
            Originally posted by monkeyracer View Post
            have you tried to set a timer event? something that after a certain amount of time eval's the slider's position against the variable it's representing?

            I've got a seperate media keypad on the test laptop with volume controls, and when I use those to change the volume the slider updates.
            yea, your volume slider updates. try it with a custom slider. doesnt work. as for a timer event, what command will update the position of a slider? i know of no such command

            Comment


            • #7
              Originally posted by tundra2000 View Post
              yea, your volume slider updates. try it with a custom slider. doesnt work. as for a timer event, what command will update the position of a slider? i know of no such command
              Use "SETVAR."

              i.e.
              If custom slider variable is "$VOLUMEVARIABLE$," use SETVAR;VOLUMVARIABLE;<value converted to ratio to 65535>.

              This will update the slider w/o using the slider itself.
              Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

              Comment


              • #8
                yay, that helps alot. now the only thing i need is a label for the length of a song in seconds so that i can create custom variable sliders for SONGPOS.

                unless there is a way of parsing a time like 3:45. anybody know of a way to take a label displaying 3:45 and convert it to 225? (3*60 + 45). i think a label would be better than an autoit script because ill be running this calculation every second and i dont wanna run a program every second.

                Comment


                • #9
                  I can't see how you could convert time data to be used in a custom slider w/in RR.

                  I imagine firing a program every sec could take up some serious clock cycles...

                  Hopefully guino can chime in...
                  Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                  Comment


                  • #10
                    Here is a AutoIt script what converts the "TRACKTIME" Label to seconds.
                    Use a Label to show the seconds on your skin with that code."=$MYTIME$"
                    It will show the track time in sec. You can run that script ONSONGSTART.
                    Just rename to exe.
                    Attached Files

                    Comment


                    • #11
                      I think you had something going back when you were trying it the other way.

                      I would probably set up a variable that changes ONSONGSTART so that it checks if the file is a song or video, and displays such slider info.

                      Something like:

                      "ONSONGSTART","SETVAR;MYPOS;SONGPOS"
                      "ONVIDEOSTART","SETVAR;MYPOS;VIDEOPOS"

                      And the slider would have:
                      "$MYPOS$" for the code.

                      The "ONVIDEOSTART" can probably be set up in exectbl.ini, but I'm not on that computer to test that.

                      The only problem would be that if you have a song playing, then switch to video mid song, and then back to the song, it probably wouldn't update. (same issue if you use the script that MGD posted.)
                      2007 Chrysler PT Cruiser TE
                      Car PC Progress:
                      Planning.......[---------X-] 95%
                      Parts...........[---------X-] 90%
                      Fabrication...[---------X-] 90%
                      RR Skin........[---------X-] 95%
                      View my
                      Worklog
                      Road Runner Skins
                      Website
                      Favorite thread EVER!

                      Comment


                      • #12
                        Originally posted by MGD View Post
                        Here is a AutoIt script what converts the "TRACKTIME" Label to seconds.
                        Use a Label to show the seconds on your skin with that code."=$MYTIME$"
                        It will show the track time in sec. You can run that script ONSONGSTART.
                        Just rename to exe.
                        this will work, but id like to keep my original TRACKTIME label. can you change it so that it creates a new label like "TRACKTIME2" or something like that?

                        EDIT: cant get it working...

                        Comment


                        • #13
                          did you try my method? (I haven't yet, but I have an idea to try if it doesn't work...)


                          @mstaedt - did you get your issue resolved? we kinda hijacked the thread here and I wanted to make sure your question was answered.
                          2007 Chrysler PT Cruiser TE
                          Car PC Progress:
                          Planning.......[---------X-] 95%
                          Parts...........[---------X-] 90%
                          Fabrication...[---------X-] 90%
                          RR Skin........[---------X-] 95%
                          View my
                          Worklog
                          Road Runner Skins
                          Website
                          Favorite thread EVER!

                          Comment


                          • #14
                            Originally posted by monkeyracer View Post
                            did you try my method? (I haven't yet, but I have an idea to try if it doesn't work...)


                            @mstaedt - did you get your issue resolved? we kinda hijacked the thread here and I wanted to make sure your question was answered.
                            yea sorry mstaedt, please jump in here if your problem isnt resolved, that was initially started.. anyway, i dont think your method will work because the custom slider will not move throughout the song. maybe instead of ONSONGSTART, if i just put that code on a timer that updated every 1 second, it would work. idn

                            EDIT: got the Time.exe script working. you didnt tell me i had to make a variable called "$MYTIME$"..... well, technically you did, i just didnt know that it was specific to that variable. had to decompile it to figure it out. o well, thanks for the help

                            Comment


                            • #15
                              Originally posted by monkeyracer View Post
                              @mstaedt - did you get your issue resolved? we kinda hijacked the thread here and I wanted to make sure your question was answered.
                              Yes and no. More research and some tinkering led me to the realization that RR doesn't seem to refresh variables fast enough to make for smooth movement of a tach or speedo in fine increments anyway.

                              Thanks...
                              Mark
                              --------------------------------
                              Project completed! (almost)

                              My Truck as featured in Custom Classic Trucks magazine.

                              Comment

                              Working...
                              X