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

Thread: Byind & exists???

  1. #1
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82

    Question 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!

  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,634
    You would need to set an indicator from "EXISTS;e:track01.cda"

    try

    "setind;yourind;EXISTS;e:track01.cda"


    and then

    "byind;yourind;truecode<<falsecode"

  3. #3
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82
    Enforcer, thanks for your reply however the SETIND did not work. Tried setting it like !myind and myind, neither way worked.

  4. #4
    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,634
    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.

  5. #5
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,723
    Blog Entries
    1
    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

  6. #6
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82
    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.

  7. #7
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,723
    Blog Entries
    1
    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 at 07: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

  8. #8
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82
    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).

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

    Join Date
    Oct 2004
    Posts
    5,266
    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

  10. #10
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. Byind question
    By pierrotm777 in forum RR Skins
    Replies: 2
    Last Post: 01-10-2011, 03:32 AM
  2. Android frontend exists?
    By upspace in forum Other Cool Front Ends
    Replies: 11
    Last Post: 04-15-2010, 01:53 PM
  3. Byind & exists
    By Valheru in forum Road Runner
    Replies: 8
    Last Post: 04-08-2010, 03:40 PM
  4. Does anyone know if something like this exists?
    By AYahoo in forum General Hardware Discussion
    Replies: 12
    Last Post: 02-05-2005, 09:52 PM
  5. Why MediaEngine exists...
    By CarComp in forum ME Archive
    Replies: 2
    Last Post: 06-02-2003, 09:39 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
  •