Results 1 to 9 of 9

Thread: how to put a filename into a variable

  1. #1
    Maximum Bitrate Dalailama's Avatar
    Join Date
    Jan 2006
    Location
    Novara Italy
    Posts
    628

    Question 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. #2
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,168
    Blog Entries
    53
    is your skin a flash skin?
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  3. #3
    Maximum Bitrate Dalailama's Avatar
    Join Date
    Jan 2006
    Location
    Novara Italy
    Posts
    628
    Quote 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

  4. #4
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    If you're using a Directory List, you could use LISTTEXT to pass the selected text into a variable.

    i.e.

    "SETVARBYCODE;APPFAVVAR;LISTTEXT"

  5. #5
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,168
    Blog Entries
    53
    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.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  6. #6
    Maximum Bitrate Dalailama's Avatar
    Join Date
    Jan 2006
    Location
    Novara Italy
    Posts
    628
    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

  7. #7
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    Quote 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

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

  9. #9
    Maximum Bitrate Dalailama's Avatar
    Join Date
    Jan 2006
    Location
    Novara Italy
    Posts
    628
    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

Similar Threads

  1. [Release] iGSkinner BETA 3.9.5
    By 0l33l in forum SkinBedder
    Replies: 631
    Last Post: 06-26-2005, 02:40 PM
  2. lili put fab help?
    By paradoxblue in forum Fabrication
    Replies: 7
    Last Post: 06-08-2005, 01:08 AM
  3. Where to put the Inverter?
    By MarkW in forum Newbie
    Replies: 5
    Last Post: 05-28-2005, 02:08 PM
  4. Can I put Pc speakers on my computer car?
    By prado_sergio in forum General Hardware Discussion
    Replies: 2
    Last Post: 08-26-1999, 12:11 PM
  5. Where is a good palce to put a 15in' Monitor?
    By beaver6d9 in forum General Hardware Discussion
    Replies: 4
    Last Post: 08-25-1999, 05:08 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
  •