Change text list to boolean and search for it.

Discuss and share scripts and script files...
Post Reply
kunkel321
Posts: 664
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Change text list to boolean and search for it.

Post by kunkel321 »

highend wrote:

Code: Select all

copytext replace(formatlist("<clipboard>", "e", "<crlf>"), "<crlf>", " OR ");
Again, thanks for the script Highend! This post is a "caryover" from here http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=13954

So my thought is to get a list of search terms, such as:
  • Jon Doe
    Amy Smith
    Don Martin
into my clipboard, then launch XY and a script via command line switch.

I've saved a Search Template called, "StudentSearch," and it appears that I can call it with

Code: Select all

loadsearch template "StudentSearch" , r
But I want the search string to be the new list of students in my clipboard (after it's made into "Jon Doe OR Amy Smith OR Don Martin," of course). I DON'T want to keep searching for the same text over and over... Is that possible to achieve?

Edit: "Don't" want...
ste(phen|ve) kunkel
Scaling: Main monitor 125%, Secondary monitor on the right 100%
OS: Win 10. XYplorer version: Latest beta, unless specified.

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Change text list to boolean and search for it.

Post by highend »

Code: Select all

    copytext replace(formatlist("<clipboard>", "e", "<crlf>"), "<crlf>", " OR ");
    setkey "<clipboard>", "Named", "Named", "<xydata>\FindTemplates\StudentSearch.ini", 1;
    loadsearch "StudentSearch", "r";
One of my scripts helped you out? Please donate via Paypal

Post Reply