is your skin a flash skin?
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?
If you're using a Directory List, you could use LISTTEXT to pass the selected text into a variable.
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
not sure if thats clear but that combination of labels would allow you to run the program from a button dynamically.Code:$filepath$=DLPATH + DLTEXT + "\" + DLTEXT + ".exe"
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.
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".
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