Automatic closing of the search bar

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Texano88
Posts: 54
Joined: 08 Oct 2021 23:22
Location: Windows 11 23H2 125% XY 27.90+ beta

Automatic closing of the search bar

Post by Texano88 »

Hi, I wanted to ask if it is possible to automatically close the search panel (Ctrl + f) once I close the search results page.
Thank you.

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

Re: Automatic closing of the search bar

Post by highend »

Use a run script action for a custom event action: Switch tabs

Code: Select all

$modes = "";
    while ($i++ < gettoken(<get "Tabs">, "count", "|")) { $modes .= tab("get", "mode", $i); }
    if (get("#665") && strpos($modes, "1") == -1) { #665; }
One of my scripts helped you out? Please donate via Paypal

Texano88
Posts: 54
Joined: 08 Oct 2021 23:22
Location: Windows 11 23H2 125% XY 27.90+ beta

Re: Automatic closing of the search bar

Post by Texano88 »

It works great, thanks.
Is Visual Basic Right?

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

Re: Automatic closing of the search bar

Post by highend »

No, it's XYplorer's scripting language
One of my scripts helped you out? Please donate via Paypal

Texano88
Posts: 54
Joined: 08 Oct 2021 23:22
Location: Windows 11 23H2 125% XY 27.90+ beta

Re: Automatic closing of the search bar

Post by Texano88 »

The script doesn't seem to work anymore with the latest version

Post Reply