os>execute file + skin:// for a path

Got an idea, post it here

os>execute file + skin:// for a path

Postby jowaldo on Fri Jan 07, 2005 11:33 pm

Thanks for adding the skin:// feature for coverart images in a db!

Would it be possible to add that also to the os>execute file command? I have some realllllly good ideas that would be possible if that worked :)
jowaldo
 
Posts: 903
Joined: Wed May 21, 2003 7:17 pm

Postby katsumoto on Wed Feb 16, 2005 1:40 pm

Could you tell me what would be possible in that case?
katsumoto
 
Posts: 18
Joined: Sun Feb 13, 2005 10:42 pm
Location: Belgium

Postby jowaldo on Wed Feb 16, 2005 6:04 pm

Actually Steven added this already..

Right now, I'm using this to do the styles change page in my skin.. it calls a batch file located in the current skin directory. That alone could create lots of possibilities, and you could also include any exe's in a skin.
jowaldo
 
Posts: 903
Joined: Wed May 21, 2003 7:17 pm

Postby katsumoto on Wed Feb 16, 2005 8:56 pm

Sorry, I'm slow on this one.
What could these exe's do for example?
katsumoto
 
Posts: 18
Joined: Sun Feb 13, 2005 10:42 pm
Location: Belgium

Postby jowaldo on Wed Feb 16, 2005 11:10 pm

well any exe there is really.. for example say you had some command line capable exe to do some odd thing like control a dvd changer via serial port...

It was doable before, but you had to give a full path like c:\program files\whatever\myexe.exe

Now you can include that exe in your skin folder, and refer to it by skin:\\myexe.exe

Basically is makes skins more powerful but easily flexible/portable at the same time. Like with my skin.. I have it call a batch file that copies over certain image files with different color ones. Before, if I wanted to do this I would have to point to the batch file in one specific location for it to launch correctly. Now I can just include it in the skin, and no matter where you have xlobby installed to, it works fine.
jowaldo
 
Posts: 903
Joined: Wed May 21, 2003 7:17 pm

Postby katsumoto on Thu Feb 17, 2005 2:25 pm

Great,
I get it now
Thanks
:D
katsumoto
 
Posts: 18
Joined: Sun Feb 13, 2005 10:42 pm
Location: Belgium

Postby BaddaBing on Thu Feb 17, 2005 2:36 pm

jowaldo,
You placed a link in your first post regarding the 'skin://' feature. The link doesn't work. This is a great enhancement that really simplifies the portability of skins. For those skinners that have not tried it yet here is what you need to do.

Open up the database.xml file you want to edit (notepad will work fine) and replace hardcoded paths like this:

<coverart>c:\xlobby\skin\HeavyMetal\radio\images\Alternative.bmp</coverart>

with this

<coverart>skin://radio\images\Alternative.bmp</coverart>

Now it doesn't matter what directory xlobby is installed to - all your custom artwork will now show up.

Thanks Steven - and thanks Jowaldo for bringing this to my attention.
BaddaBing
 
Posts: 557
Joined: Fri Mar 26, 2004 2:39 pm
Location: DFW Texas

Postby jowaldo on Thu Feb 17, 2005 5:50 pm

Yeah it really does do a lot.. the coverart skin:// function has been around for a little while now, but steven added it also to the os>execute file just recently
jowaldo
 
Posts: 903
Joined: Wed May 21, 2003 7:17 pm

Postby gamejester on Fri Feb 18, 2005 11:51 am

Thanks for clarifying what this now covers, I can now make my skin fully generic.
gamejester
 
Posts: 131
Joined: Mon Jun 21, 2004 9:20 am

Postby dgemily on Sat Feb 18, 2006 7:09 pm

the "skin:// + os>execute file" fonction is very nice, but is it possible to add this, for directories in the root of xlobby ?
for example:
we have some external applications stocked in a repertory "application" of xlobby , others in the plugins directory etc.....
so we use a lot of events like "os>execute file" and others pointing on :
C:\Program Files\xlobbyFr\applications\
Is it possible, Steven, to add the possibility to use something like //aplications\ instead of the full path.
it will be easier for sharing xlobby and applications etc... ( and also to configure an installation pack...)

thanx
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby stevenhanna6 on Sat Feb 18, 2006 8:41 pm

ok how about this if you use "directory://" xlobby will check to see if there if "directory" exists in its root folder....and if it does it will change "directory://" into something like "c:\xlobby\directory\" and anything after "directory://" will just get added onto the new transformation...."skin://" is still a speacial case because it is not in the root.

http://www.xlobby.com/xlobby2.zip
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby dgemily on Sat Feb 18, 2006 8:55 pm

you are wonderfull
thanks again :wink:
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby rika on Sat Feb 18, 2006 10:44 pm

:!: Beauteful :!:

Rika
rika
 
Posts: 401
Joined: Fri Apr 02, 2004 5:43 am
Location: Sweden

Postby Colby on Sat Feb 18, 2006 10:46 pm

Wonderful!
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA