Results 1 to 5 of 5

Thread: Setting a "top" to a directory

  1. #1
    Variable Bitrate
    Join Date
    Jan 2007
    Location
    East Central FLA
    Posts
    241

    Setting a "top" to a directory

    I've searched using a few different terms, but can't find what I'm looking for.

    I've got this skin in which I want to browse up and down in the directory structure. I've set it up using the back and browse buttons.

    However, I want to prevent the skin from backing out past it's starting point (much like the audio browser works) when using the back button, but can't figure out how to do so.

    Any help is welcomed.

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    The only place you can limit the back button is in the music path and video path.. you could use EVAL though:

    Code:
    "SETVARBYCODE;CURDIR;DLPATH||EVAL;ISTOP;strcmp("$CURDIR$";"C:\TOPDIR\")||BYVAR;ISTOP;BACK<<""
    Should execute back only you're not already on TOPDIR...
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Variable Bitrate
    Join Date
    Jan 2007
    Location
    East Central FLA
    Posts
    241
    Thank you sir.

    I have to think through how this works, but I am quite willing to believe seeing as who is providing the response...

    Edit: Thought I should mention that it does work, I just need to understand how it works, not if Guino gives good advice.

  4. #4
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote Originally Posted by lbridges View Post
    Thank you sir.

    I have to think through how this works, but I am quite willing to believe seeing as who is providing the response...

    Edit: Thought I should mention that it does work, I just need to understand how it works, not if Guino gives good advice.
    The command g provided is a simple true/false logic statement.

    The "EVAL" function compares the string contents of $CURDIR$, which is your current directory path, to C:\TOPDIR\.

    Simply stated, if $CURDIR$ is equal to "C:\TOPDIR\" then do nothing. Otherwise, browse "BACK," which is accomplished using the BYVAR stamement.
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  5. #5
    Variable Bitrate
    Join Date
    Jan 2007
    Location
    East Central FLA
    Posts
    241
    thanks for the explanation.

Similar Threads

  1. Setting 1
    By ysutarko in forum FP Bug Reports
    Replies: 2
    Last Post: 04-01-2005, 03:07 PM
  2. problem with directory search
    By Farkum in forum FP Bug Reports
    Replies: 2
    Last Post: 02-16-2005, 04:48 AM
  3. Replies: 1
    Last Post: 12-13-2004, 11:55 PM
  4. Focus toggle between 'Directory' and Playlist?
    By MegatronUK in forum FrodoPlayer
    Replies: 0
    Last Post: 11-18-2004, 09:53 AM
  5. Browse by directory
    By nappyjim in forum FrodoPlayer
    Replies: 3
    Last Post: 10-24-2004, 04:02 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
  •