Page 1 of 1
How can get selected items first item position number?
Posted: 18 Nov 2015 18:30
by drjs5x
hi dear xyplorer family.
How can get selected items first item position number?
example i select 40-50 jpg files selected first item how can learn position?
sorry my bad english dears.
script.
please help me.
Re: How can get selected items first item position number?
Posted: 18 Nov 2015 18:49
by highend
Code: Select all
echo gettoken("<get SelectedItemsPathNames |>", 1, "|");
Re: How can get selected items first item position number?
Posted: 18 Nov 2015 18:49
by bdeshi
Code: Select all
text gettokenindex(<selitem>, listpane(), '|');
closest to the solution I could come.
edit: saw highend's snippet. His script gives you the first selected item. Mine gives you the ordinal list position of the first selected item. Which one do you want?
Re: How can get selected items first item position number?
Posted: 18 Nov 2015 19:04
by drjs5x
two replies wonderfull.
and very very thanks. and new want?
i want to x-1 select first item before item position number?
ok thanks
example=
$selection_first_item_pos_number = **** ; $before_pos_number=$selection_first_item_pos_number-1;msg $before_pos_number
my target this but i cant dears.
Re: How can get selected items first item position number?
Posted: 18 Nov 2015 19:19
by drjs5x
i can dears ... im happy noww
""
$a = gettokenindex(<selitem>, listpane(), '|');$b =eval($a-1);msg $b;
""
thats greattttt!!!!!!!!!!!!!!!!!!
Re: How can get selected items first item position number?
Posted: 18 Nov 2015 19:27
by highend
i want to x-1 select first item before item position number?
Code: Select all
sel gettokenindex(<selitem>, listpane(), "|") - 1;