SC: How indentify search results tab?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
autocart
Posts: 1386
Joined: 26 Sep 2013 15:22

SC: How indentify search results tab?

Post by autocart »

Hi all,
Which options do I have in order to identify in scripting whether the current tab contains a list of search results?
Of course it would be simple to see if the caption says "Search Results" but since the caption can be also be set to say someting else it is not 100% sure.

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

Re: SC: How indentify search results tab?

Post by highend »

I guess there is no 100% way to identify a search tab if there is a chance that it's name was changed.

At least something to check for:
Check if the content of the list contains files from different directories and neither branch view nor a paperfolder is used.
If it's true, it's a search tab.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66323
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: SC: How indentify search results tab?

Post by admin »

Makes sense, I'll add something.

autocart
Posts: 1386
Joined: 26 Sep 2013 15:22

Re: SC: How indentify search results tab?

Post by autocart »

Thx to both of you.
EDIT:
admin wrote:v14.50.0107 - 2014-09-29 10:26
+ SC tab enhanced: The operation "get" got a new data parameter "mode" that
returns the list mode of the tab.
Returned values:
0 = Browse
1 = Find (Search Results)
3 = Drives
4 = Network
5 = Recycler
Example:
if (tab("get", "mode") == 1) {
echo "It's a search results listing.";
}
4 minutes difference - You are so incredibly fast, wow, thx again.

Post Reply