Page 1 of 1
SC: How indentify search results tab?
Posted: 29 Sep 2014 08:10
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.
Re: SC: How indentify search results tab?
Posted: 29 Sep 2014 09:41
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.
Re: SC: How indentify search results tab?
Posted: 29 Sep 2014 10:22
by admin
Makes sense, I'll add something.
Re: SC: How indentify search results tab?
Posted: 29 Sep 2014 10:40
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.