Process <selitems>

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Process <selitems>

Post by binocular222 »

Some function such as openwith require pipie "|" separated list of items while <selitems> return in this format
"item1" "item2" "item3"
So, everytime I have to do this:

Code: Select all

$ItemList = Replace(Trim("<selitems>", '"'), '" "', "|");
I think it's not-so-nice. Anyone have a better way to process <selitems>?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Process <selitems>

Post by Marco »

Code: Select all

$ItemList = get("SelectedItemsPathNames", "|");
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Process <selitems>

Post by binocular222 »

Oh thanks, much more elegant now
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Post Reply