Visual Filter with Timeout

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Reve_Etrange
Posts: 91
Joined: 19 Mar 2008 18:15

Visual Filter with Timeout

Post by Reve_Etrange » 20 May 2013 10:08

Hi all,

I often use visual filter to search files in big folders, but once I have seen if the files are there or not, I don't need the filter anymore.
So, is it possible to make a Catalog script that would prompt and activate a Visual Filter for, say, 5 seconds and automatically switch it off?

LittleBiG
Posts: 1536
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: Visual Filter with Timeout

Post by LittleBiG » 20 May 2013 12:56

I can give you the draft, and you can boost it for your need.

Code: Select all

"Quick VF"
  //quicksearch by visualfilter
  filter input("Enter the search string");
  $c=get("CountItems");
  wait 5000;
  filter;
  status $c . " item(s) has been found.";

Reve_Etrange
Posts: 91
Joined: 19 Mar 2008 18:15

Re: Visual Filter with Timeout

Post by Reve_Etrange » 20 May 2013 13:36

Thank you!
For some reasons I often find it hard starting scripts from scratch, but I usually manage to tweak existing ones.

Here's a modified version that remember what tab to unfilter (if we change tab in the meantime):

Code: Select all

"Quick VF"
  //quicksearch by visualfilter
  $t = tab( "filter", input("Enter: ") );
  wait 5000;
  tab( "filter",,$t );

Post Reply