Possible to use a variable in an OS > Execute argument?

Help each other out

Possible to use a variable in an OS > Execute argument?

Postby rembetis on Fri Nov 18, 2005 4:36 pm

Are variables only viable for internal Xlobby commands, or is it possible to use one in an OS > Execute argument?

I'm trying to incorporate an external picture viewer (specifically Irfanview) with command line parameters, but I'd like to still make use of Xlobby's picture database, just not have it open its own slideshow but rather Irfanview's...

To do this, I guess I actually need to know two things:

1. Is it possible to change the behavior of a category when it is clicked -- i.e. to either cancel the display event, or create a new one?

2. How do I use a variable in an OS > Execute event argument? I need to get the currently highlighted picture folder name into the following event:

OS > Execute File
File: C:\Program Files\IrfanView\i_view32.exe
Arguments: /slideshow=D:\[variable directory name]

Thanks in advance...
rembetis
 
Posts: 493
Joined: Thu Jul 28, 2005 10:27 pm

Postby lar282 on Sat Nov 19, 2005 7:00 am

try
"%YourDataBase>parameter%"

for parameter for your picture, or did u just want the directory name? If so I guess u need a script!


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby dgemily on Sat Nov 19, 2005 12:33 pm

lar282 wrote:try
"%YourDataBase>parameter%"


"YourDataBase" , in fact it's not the databaseName, you should use the categoryName ( sometime the categoryName is different than the databaseName)
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby rembetis on Sat Nov 19, 2005 1:29 pm

Hmmm... Thank you, but I'm not quite understandig the use of "parameter" in your replies. Perhaps my question was worded poorly.

I think I've decided to use a different method to achieve what I want, but for future reference I'm still curious whether it's possible to set a variable (in this case, the current result of "category>pictures>display" i.e. the name of the currently highlighted picture folder) and then use that variable in an OS > execute event.
rembetis
 
Posts: 493
Joined: Thu Jul 28, 2005 10:27 pm

Postby dgemily on Sat Nov 19, 2005 2:00 pm

rembetis wrote:Hmmm... Thank you, but I'm not quite understandig the use of "parameter" in your replies. Perhaps my question was worded poorly.



so a variable should be like this %categoryName>xmlfield%
example :
if you want open a video( from your category "movies") with mpc.
you will use an event with the command os:execute file, on arguments you will use something like:
Code: Select all
/play "%movies>parameter%" /close


%movies>parameter% this variable will take information on the field "parameter" of the item selected in the category "movies" ( so it will take information of the database displayed in the cagegory "movies")
you can use everyfields of your database....

So for "Arguments: /slideshow=D:\[variable directory name]"
use something like :
/slideshow=%pictures>parameter%
you can also use
/slideshow=D:\%pictures>display% or /slideshow=D:\%pictures>directory% for your example...
edit your database you will understand

be carreful, you should select a repertory in the category pictures, and not a picture file ....
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France

Postby rembetis on Sat Nov 19, 2005 5:01 pm

Merci beaucoup, dgemily. I understand much better now. :D
rembetis
 
Posts: 493
Joined: Thu Jul 28, 2005 10:27 pm

Postby dgemily on Sat Nov 19, 2005 5:11 pm

rembetis wrote:Merci beaucoup, dgemily

mais de rien ! :wink:
dgemily
 
Posts: 793
Joined: Thu May 13, 2004 6:24 am
Location: Paris, France