Page 1 of 1

how can search with script (custom button)?

Posted: 18 Nov 2015 20:27
by drjs5x
hi dears;


how can search with script (custom button)?
example i now at C: \my pictures
a custom button search *.jpg;*.png;*.gif that current path with custom button and with script?

is this possiple? if yes how please script example?

Re: how can search with script (custom button)?

Posted: 19 Nov 2015 06:45
by bdeshi
Type this code into the addressbar of XY and press Enter:

Code: Select all

::snippet;
A textbox will open. Copy and paste the following code there, and press OK. A new button will be added to the toolbar.

Code: Select all

Snip: CTB 1
  XYplorer 16.00.0004, 11/19/2015 11:41:53 AM
Action
  NewUserButton
Name
  quick search #1
Icon
  :qns
ScriptL
  goto "?*.jpg;*.png;*.gif /n";
ScriptR
  
FireClick
  0
If you want to search within subfolders of current location too, then remove the " /n" segment from the "goto" line.

Re: how can search with script (custom button)?

Posted: 19 Nov 2015 07:39
by drjs5x
thanks dear but dont work that method or script.
and i already add manueel custom button.
i need only that script.
search script current folder with asrerix.
http://prntscr.com/94ez8w
very thanks.

Re: how can search with script (custom button)?

Posted: 19 Nov 2015 07:52
by highend
You just need to put in the "On left click" field of a custom button:
goto "?*.jpg;*.png;*.gif /n";

Re: how can search with script (custom button)?

Posted: 19 Nov 2015 08:03
by drjs5x
yes great working thanks .
Have a nice day. :appl: :appl: :appl: :appl: :appl: :appl: :appl: :appl: :appl: :cup: :cup: :cup: :cup: :cup:

Re: how can search with script (custom button)?

Posted: 25 Jun 2017 14:46
by kotlmg
hello sir
how to apply the above code recursively to folders and subfolders etc?

with regards

Re: how can search with script (custom button)?

Posted: 25 Jun 2017 14:57
by bdeshi
see my post above:
SammaySarkar wrote:If you want to search within subfolders of current location too, then remove the " /n" segment from the "goto" line.

Re: how can search with script (custom button)?

Posted: 25 Jun 2017 15:09
by kotlmg
thanks a lot.