Announcement

Collapse
No announcement yet.

RR Strings/Variables Plugin [ Now in RRExtended ]

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

  • RR Strings/Variables Plugin [ Now in RRExtended ]

    Because there are currently no commands to do such and I have seen several users wanting a way to be able to only get a part of a RR variable I decieded to make a ext plugin that gives us these missing RR var cmd's without using an outside app like Autoit to do something that should be able to be done in RR.

    Without further a-do..

    The "<Var>" as used below is entered without the "$"'s
    In the examples below, "TrackPath" = "D:\MyMusic\AC-DC\Razors Edge\If You Dare.mp3"

    "FileFromPath"
    Returns the filename without extention in a given path
    "FileFromPath;<VAR>;<Return Var>"
    ie.."FileFromPath;TrackPath;Myvar"
    MyVar = "If You Dare"

    "FileExtFromPath"
    Returns the filename with extention in a given path
    "FileExtFromPath;<VAR>;<Return Var>"
    ie.."PathFromPath;TrackPath;Myvar"
    MyVar = "If You Dare.mp3"

    "PathFromPath"
    Returns the path without a filename
    "PathFromPath;<VAR>;<Return Var>"
    ie.."PathFromPath;TrackPath;Myvar"
    MyVar = "D:\MyMusic\AC-DC\Razors Edge\"

    "StrLeft"
    Returns the left <Num of Chars> of <Var>
    "StrLeft;<Var>;<Num of Chars>;<Return Var>"
    ie.."StrLeft;TrackPath;9;Myvar"
    MyVar = "D:\MyMusi"

    "StrRight"
    Returns the right <Num of Chars> of <Var>
    "StrRight;<Var>;<Num of Chars>;<Return Var>"
    ie.."StrRight;TrackPath;14;Myvar"
    MyVar = "f You Dare.mp3"

    "StrMid"
    Returns a number middle characters of <Var>
    "StrMid;<Var>;<Start Pos>;<Num of Chars>;<Return Var>"
    ie.."StrMid;TrackPath;3;17;Myvar"
    MyVar = "\MyMusic\AC-DC\Ra"
    Note:By using a "-1" as the <Num of Chars>, it will return from the <Start Pos> to the end of <Var>
    ie.."StrMid;TrackPath;14;-1;Myvar"
    MyVar = "DC\Razors Edge\If You Dare.mp3"

    "StrRepl"
    Replaces text in a var with other text
    "StrRepl;<Var>;<Text to replace>;<Replacement Text>;<Return Var>"
    ie.."StrRepl;TrackPath;AC-DC;Metallica;Myvar"
    MyVar = "D:\MyMusic\Metallica\Razors Edge\If You Dare.mp3"

    "StrLen"
    Returns the length of <var>
    "StrLen;<Var>;<Return Var>"
    ie.."StrLen;TrackPath;MyVar"
    MyVar = 44
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  • #2
    Yuhuuuuuuuuu

    This is the best time you could have posted this (for me ), just today I had in mind to learn some of Autoit to write these functions and use them in RR.

    You saved me a lot of time!!

    thanks!! thanks!! thanks!!!

    Comment


    • #3
      where are we putting these commands to get them to work?

      I registered the .dll and placed this in my exectbl.ini:

      Code:
      "PathFromPath;TRACKPATH;trackfolder"
      and tried to use the <var> trackfolder with and without $'s, but it didn't work.
      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
        F-yeah!

        Awesome!
        Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

        Comment


        • #5
          Originally posted by monkeyracer View Post
          where are we putting these commands to get them to work?

          I registered the .dll and placed this in my exectbl.ini:

          Code:
          "PathFromPath;TRACKPATH;trackfolder"
          and tried to use the <var> trackfolder with and without $'s, but it didn't work.

          You will need to add an X reference with the name of the DLL to your menu skin.

          ie

          X,RRStrings

          Comment


          • #6
            but that doesn't seem to work with the mp3art plugin...
            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


            • #7
              Originally posted by monkeyracer View Post
              where are we putting these commands to get them to work?

              I registered the .dll and placed this in my exectbl.ini:

              Code:
              "PathFromPath;TRACKPATH;trackfolder"
              and tried to use the <var> trackfolder with and without $'s, but it didn't work.
              You need more than that...use this just as you would use any other standard RR Cmd.

              You would probably add that to some additional button or exectbl code(s)...

              Originally posted by monkeyracer View Post
              but that doesn't seem to work with the mp3art plugin...
              How are you using it in combination with the Mp3Art plugin?
              RideRunner...The #1 FE, PERIOD.

              Current Project: DFXVoice [v1.0 Released]
              Next in line: RRMedia v2.0

              DFX 5.1.1 Skin
              Appstore Link

              My RideRunner Plugins
              RRMedia
              RRExtended
              DFXVoice

              "There are no bugs - only undocumented features."

              Comment


              • #8
                Originally posted by Enforcer View Post
                You will need to add an X reference with the name of the DLL to your menu skin.

                ie

                X,RRStrings
                Originally posted by Blue ZX3 View Post
                How are you using it in combination with the Mp3Art plugin?
                I want to keep the mp3art plugin to show embedded art, but with your plugin, defined as enforcer suggested, neither work.

                If I have a code like this:

                "MYNEWPATH","PathFromPath;TRACKPATH;trackfolde r"

                Then do I reference $MYNEWPATH$ or $trackfolder$ for the label that shows the info?

                Basically I want a label that shows the trackpath without the filename (to work with what I was trying in my other thread.)
                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


                • #9
                  Originally posted by monkeyracer View Post
                  I want to keep the mp3art plugin to show embedded art, but with your plugin, defined as enforcer suggested, neither work.

                  If I have a code like this:

                  "MYNEWPATH","PathFromPath;TRACKPATH;trackfolde r"

                  Then do I reference $MYNEWPATH$ or $trackfolder$ for the label that shows the info?

                  Basically I want a label that shows the trackpath without the filename (to work with what I was trying in my other thread.)
                  I just used it and you reference $trackfolder$ after executing "MYNEWPATH" via button or "ONSONGSTART."

                  Just checked the functionality of the MP3Art plugin and Blue's plugin does not seem to interfere w/ it.
                  Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                  Comment


                  • #10
                    oK, i think i get it now, I'll try that later.
                    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


                    • #11
                      Really, this is way harder than it should be. Especially for newbies. And I'm not a newbie.

                      If this is referenced in menu.skin as:

                      Code:
                      X,RRStrings
                      along with

                      Code:
                      X,Mp3Art
                      Then the embedded art goes away. I had "ALBUMART" on my menu.skin, and the new variable as an indicator in my Audio_Visuals.skin (whiteroom unreleased skin) and the "ALBUMART" wouldn't display when the X,RRStrings was defined. (Unless you reference the new variable, but sometimes that isn't the same image - compilation albums, or various artists...)

                      I just can't get this right. I've tried so many different combinations, I can't really remember them all, but...
                      I tried something like this:

                      Code:
                      "TIMER","StrRepl;w_tmp;  F;;mynewtemp",WEATHER.skin
                      So that it does what I was wanting to do in this thread:
                      http://www.mp3car.com/vbulletin/road...e-weather.html

                      with a label for the new variable:

                      Code:
                      LXX,,,,,"$mynewtemp$"
                      And I get nothing. at all, according to the "instructions" it should replace the
                      " F" with "" (basically it will delete the space, degrees symbol, space and the capital 'F' so that all is returned is a normal number that shows the temp, which i want to later have evaluated and made into a slider.)

                      I have the X,RRStrings extension defined, and even deleted the mp3art definition to make sure it was the only thing being referenced. I'm using the most recent RR beta from the sticky.

                      Currently the two scripts that Sal R. and MGD helped me with work, perfectly. If it's not easier to use than adding AI scripts, then it won't be used.

                      So please help clear this up for me and anyone else having this issue.
                      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
                        Yeah, I'm not using the beta...still on 11/4/2207 version.
                        Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                        Comment


                        • #13
                          I will look at this next, meaning that right this minute I'm working on finishing the Config update I promised days ago. After, I will take a look and see if I can get what your trying to do to work, and find any possible glitches...

                          By the end of today I'll look and get back..
                          RideRunner...The #1 FE, PERIOD.

                          Current Project: DFXVoice [v1.0 Released]
                          Next in line: RRMedia v2.0

                          DFX 5.1.1 Skin
                          Appstore Link

                          My RideRunner Plugins
                          RRMedia
                          RRExtended
                          DFXVoice

                          "There are no bugs - only undocumented features."

                          Comment


                          • #14
                            Originally posted by Sal R. View Post
                            Yeah, I'm not using the beta...still on 11/4/2207 version.
                            Dang, you've got a version that's 200 years ahead of it's time...

                            Originally posted by Blue ZX3 View Post
                            I will look at this next, meaning that right this minute I'm working on finishing the Config update I promised days ago. After, I will take a look and see if I can get what your trying to do to work, and find any possible glitches...

                            By the end of today I'll look and get back..

                            Thanks, maybe it has something to do with the new beta then? So, I'm not completely crazy then.
                            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


                            • #15
                              This the correct code, plugin works fine using the new beta. You just had an extra space at the beginning of the " F" and becase of that it could not find the text to replace

                              Code:
                              "TIMER","StrRepl;w_tmp; F;;mynewtemp",WEATHER.skin
                              RideRunner...The #1 FE, PERIOD.

                              Current Project: DFXVoice [v1.0 Released]
                              Next in line: RRMedia v2.0

                              DFX 5.1.1 Skin
                              Appstore Link

                              My RideRunner Plugins
                              RRMedia
                              RRExtended
                              DFXVoice

                              "There are no bugs - only undocumented features."

                              Comment

                              Working...
                              X