Announcement

Collapse
No announcement yet.

how to put a filename into a variable

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

  • how to put a filename into a variable

    Hi,
    I'm dealing with a strange dream...
    I'd like to be able to put the filename of a file selected from a list into a variable with a RR command.
    I'll explain it better:
    imagine you've got a launch skin in which you've got a list (of all the applications) and some button (for ex. 1, 2, 3, 4, 5).
    I'd like to select an application from the list and be able to save its filename into a variable simply hold pressing the button 1 (for ex.) in a way that I'll be able to launch the selected application simply by pressing that button without have to select it from the list again...
    ...a sort of favourite applications...
    ...what do you think expert skinners? Is it possible or does it have to remain a dream?
    Live today like it is your last day, and behave as though you will live forever...

    my WEBSITE

    MapMonkey Dalai skin-preview-download ITA-email me for ENG
    Road Runner CrystalBlue skin-preview-beta release

  • #2
    is your skin a flash skin?
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

    Comment


    • #3
      Originally posted by Sonicxtacy02 View Post
      is your skin a flash skin?
      No it isn't a flash based skin...
      I need something to use with
      "ONFILECLICK", "SETVAR","SAVETOFILE", etc. etc.
      Live today like it is your last day, and behave as though you will live forever...

      my WEBSITE

      MapMonkey Dalai skin-preview-download ITA-email me for ENG
      Road Runner CrystalBlue skin-preview-beta release

      Comment


      • #4
        If you're using a Directory List, you could use LISTTEXT to pass the selected text into a variable.

        i.e.

        "SETVARBYCODE;APPFAVVAR;LISTTEXT"
        Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

        Comment


        • #5
          ah ok.. i do this in my current skin.. basically i use a combination of DLPATH and DLTEXT to come up with the full path to the program to skin.ini then a small script i wrote to read the window name from the launch folder's .ini. Works quite well. I'm not sure how ou could right the label combination out as a variable but it would be

          Code:
          $filepath$=DLPATH + DLTEXT + "\" + DLTEXT + ".exe"
          not sure if thats clear but that combination of labels would allow you to run the program from a button dynamically.
          mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
          Follow Me on Twitter or Facebook
          Live mp3Car Facebook Chat

          Comment


          • #6
            Thanks a lot.
            ...I'm interested in this LISTTEXT... where did you find it? it's not in the command skin list!
            I'll search about it! ...thanks.
            Live today like it is your last day, and behave as though you will live forever...

            my WEBSITE

            MapMonkey Dalai skin-preview-download ITA-email me for ENG
            Road Runner CrystalBlue skin-preview-beta release

            Comment


            • #7
              Originally posted by Dalailama View Post
              Thanks a lot.
              ...I'm interested in this LISTTEXT... where did you find it? it's not in the command skin list!
              I'll search about it! ...thanks.
              Pasted straight out of Skin Commands.txt:

              Code:
              "LISTTEXT"		- Shows the text selected on the currently selected list
              Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

              Comment


              • #8
                There are actually quite a few commands that are not in the SkinCommands.txt file, but this one is in there.

                LISTEXT basically is a variable that hold's what ever is selected in the currectly displayed list.

                What are you wanting to use the file name for? Are you passing it to an AutoIt script or something? If so, there is another hurdle to overcome. When you send something like this to AutoIt, and the path name contains spaces, those spaces will seperate the command line options sent to AutoIt. There for they have to be surrounded in quotes. As you can no wrap it in actual quotes, you have to make a variable that contains a quote hahha It's just easier to show you an example:

                Here is the button code that I use on one of my skins to send whatever is highlighted in the list, to an AutoIt script named "FileCopy.exe".

                Code:
                "SETVARBYCODE;LISTTEXT;LISTTEXT||SETVARBYCODE;DLPATH;DLPATH||SETVAR;QUOTES;"||RUN;$SKINPATH$Scripts\FileCopy.exe|$QUOTES$$DLPATH$$LISTTEXT$$QUOTES$"
                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


                • #9
                  Thanks guyes,
                  my skin commands was too old!
                  downloaded the new one and found it

                  @JohnWPB - I'm not using autoit...at the moment... but thank you for the support
                  Live today like it is your last day, and behave as though you will live forever...

                  my WEBSITE

                  MapMonkey Dalai skin-preview-download ITA-email me for ENG
                  Road Runner CrystalBlue skin-preview-beta release

                  Comment

                  Working...
                  X