Announcement

Collapse
No announcement yet.

Byind & exists???

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

  • Byind & exists???

    I will try to explain this the best I can. I am trying to create a command with the status of a dynamic indicator. In the RR Skinner Tool the indicator code "EXISTS;e:track01.cda" returns True if the file exists.

    Trying to use the BYIND command always returns the true code using the line below.

    BYIND;E:\TRACK01.CDA;TRUECODE<<FALSECODE

    Using the next code nothing happens.

    BYIND;EXISTS;E:\TRACK01.CDA;TRUECODE<<FALSECODE

    Is there any way to execute a command based on the presence of file? Any help would be appreciated. Thanks!

  • #3
    Enforcer, thanks for your reply however the SETIND did not work. Tried setting it like !myind and myind, neither way worked.

    Comment


    • #4
      Yeah, it looks like setind needs to be set on or off, not true or false.

      It looks like it is a special indicator that can't be used like a normal indicator for calculation purposes becasue it is calculated on the fly.

      Comment


      • #5
        It looks like you are trying to see if there is a CD in the drive by checking for the "TRACK01.CDA", and show an indicator based on that. If this is the case:

        When you put a disk in the drive, ONMEDIAINSERT is fired. You can then check what type it is by checking what the mediatypeinserted variable contains.
        0 = Unknown
        1 = DVD
        2 = Audio CD

        Then use a ByVar to set an indicator based on what type of disk is in the drive.
        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

        Comment


        • #6
          Thanks John. Unfortunately that code will not work for what I am trying to do. My actual code is not what I posted it above, it's much more complex. But I will post it here so you can see it. I want to make a code to check how many tracks are on the CD then load a playlist based off that. However with the code I have it just keeps going on to the next track no matter how many tracks there are. Ride Runner had it at over 2000 tracks before I had to force it closed.

          When I hit the CD Player button I would have these 3 commands

          STARTTRACKCOUNT||EVALTRACKCOUNT1||CHECKTRACK2

          The definitions of the commands used are below.

          "EVALTRACKCOUNT1","EVAL;TRACKCOUNT;$TRACKCOUNT$+1| |SETTENS||SETVAR;TRACKCOUNT;$TRACKTENS$$TRACKCOUNT $"

          "EVALTRACKCOUNT2","EVAL;TRACKCOUNT;$TRACKCOUNT$+1| |SETTENS||SETVAR;TRACKCOUNT;$TRACKTENS$$TRACKCOUNT $||CHECKTRACK2"

          "EVALTRACKCOUNT3","EVAL;TRACKCOUNT;$TRACKCOUNT$+1| |SETTENS||SETVAR;TRACKCOUNT;$TRACKTENS$$TRACKCOUNT $||CHECKTRACK3"

          "SETTENS","IFVAR;TRACKCOUNT=10;SETVAR;TRACKTEN S;"

          "SETUNDER10","IFVAR;TRACKCOUNT=9;SETVAR;TRACKTENS; 0"

          "CHECKTRACK2","SETIND;TRACKEXISTS;EXISTS;E:\TRACK$ TRACKTENS$$TRACKCOUNT$.CDA||BYIND;TRACKEXISTS;EVAL TRACKCOUNT3<<LOADTRACKPLAYLIST"

          "CHECKTRACK3","SETIND;TRACKEXISTS;EXISTS;E:\TRACK$ TRACKTENS$$TRACKCOUNT$.CDA||BYIND;TRACKEXISTS;EVAL TRACKCOUNT2<<LOADTRACKPLAYLIST"

          "LOADTRACKPLAYLIST","EVAL;TRACKCOUNT;$TRACKCOU NT$-1||SETUNDER10||SETVAR;TRACKCOUNT;$TRACKTENS$$TRACK COUNT$||LOADLIST;C:|USERS\DLANE2155\DOCUMENTS\RIDE RUNNER\PLUGINS\CD PLAYER\CD$TRACKCOUNT$.M3U"

          "STARTTRACKCOUNT","SETVAR;TRACKCOUNT;0||SETVAR;TRA CKTENS;0"

          Also the "mediatypeinserted" variable returns nothing for me. How does it know which drive letter to check? Might be that I am using a Power Iso virtual drive. My physical drive's best days are behind it.

          Comment


          • #7
            Is this just a standard Audio CD, and all you want to do is load all of the tracks into a playlist?

            If so this command will do that for you:
            LoadList;$mediadrive$:
            The $mediadrive$ is a variable in the rr.ini that you set, so RR knows what drive is your CD drive.

            Just have this in your RR.ini with the drive / virtual drive letter:
            mediadrive=G


            You can also pass the LOADLIST a manual drive letter if you wish:
            LoadList;D:

            This will access the CD drive, read the tracks available, and put them into a playlist.

            The label ""PLAYLISTCOUNT"" will also contain how many tracks are on the CD after the load command.

            If all you want, are the number of tracks, then you can use the above to get that. Just do the Loadlist, and the playlistcount will contain the total tracks. This will give you a number to work with, if you are scripting something further at least.
            Last edited by JohnWPB; 07-24-2011, 06:23 PM.
            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

            Comment


            • #8
              Thanks again John. The loadlist command does not seem to be working either though. It is a standard audio cd. I used the command "loadlist;E:" also tried "loadlist;E" and "loadlist;E:\"

              I did get my hands on an external disc drive to use instead to see if the "mediatypeinserted" variable would work. It does work now, but will not work with a virtual drive in case anyone was wondering (at least on my system).

              Comment


              • #9
                of course it will work with virtual drives!!!!
                if the virtual drive supports on insert notification!
                could be option, else try a better one that supports the insert notification, like slysoft virtual clone drive (its free)
                -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

                Comment


                • #10
                  Thanks Mitchjs, I'm using a physical drive now instead of a virtual. I still cant get the loadlist;E: command to work though. I'm using winamp 5.621 and riderunner 7/1/2011

                  Comment


                  • #11
                    i dont know anything about that loadlist command....
                    i cant see it doing what u think someone said it would do...

                    "LOADLIST" - This allows you to load a playlist from disk, with a custom name. You specify the full path and optionally
                    the name of the playlist. This commands only adds to the current playlist in repeat mode (i.e. "!LOADLIST").
                    Example: "LOADLIST;C:\Test.m3u;My Playlist"
                    -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

                    Comment


                    • #12
                      Thanks again. That's what I figured as well. What is the best way to load a cd into a playlist?

                      I found a program called CLAmp (to control winamp) and this command works if I use it in windows "run" prompt.

                      "C:\CLAmp\CLAmp.exe" /CDPLAY

                      However if I use it in RR like RUN;"C:\CLAmp\CLAmp.exe" /CDPLAY it does not work. Also tried it with RUNW, RUNQW, AND RUNQ. None of the commands work. I think that ride runner is ending the process before it completes. In fact other RUN commands do not work either. Such as "RUNQW;cscript.exe" "$rrpath$\SmartPlayLists\queryWinamp.vbs" "$winamppath$" "type=0" " as in the SmartPlayListsRRPlugin. Any idea how to get the RUN command to work properly?

                      Comment

                      Working...
                      X