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.
SC: How indentify search results tab?
-
autocart
- Posts: 1386
- Joined: 26 Sep 2013 15:22
SC: How indentify search results tab?
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
-
highend
- Posts: 14950
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: SC: How indentify search results tab?
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.
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:
-
autocart
- Posts: 1386
- Joined: 26 Sep 2013 15:22
Re: SC: How indentify search results tab?
Thx to both of you.
EDIT:
EDIT:
4 minutes difference - You are so incredibly fast, wow, thx again.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.";
}
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
XYplorer Beta Club