Page 1 of 1

Solved - A script command to retrieve content from Info Panel

Posted: 18 Apr 2018 17:29
by zakhar
Hello, XYplorer forum!

The situation is as follows:
1. I search for something using Info Panel and see the results in the Search Results tab.
2. Now I run a script to sort search results by the content of the comment column.

The problem is to retrieve the content of "Name:" of the Info Panel and put it into the script.
For now after the step 1. and before step 2. I copy the content of "Name:" from Info Panel manually
into the script dialog but I want to automatize this step by a script command or commands.
Is there a way for such automatic retrieval?

Re: A script command to retrieve content from Info Panel

Posted: 18 Apr 2018 17:42
by highend

Code: Select all

    $search = trim(gettoken(trim(regexmatches(get("find_queryparsed"), "parsed: name:.*"), <crlf>), 3, ":"), '"');
    text $search;

Re: A script command to retrieve content from Info Panel

Posted: 18 Apr 2018 19:50
by zakhar

Code: Select all

get("find_queryparsed")
Thank you, highend!