how can search with script (custom button)?

Discuss and share scripts and script files...
Post Reply
drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

how can search with script (custom button)?

Post 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?
newbie or not...........

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

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

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

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

Post 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.
newbie or not...........

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

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

Post by highend »

You just need to put in the "On left click" field of a custom button:
goto "?*.jpg;*.png;*.gif /n";
One of my scripts helped you out? Please donate via Paypal

drjs5x
Posts: 152
Joined: 18 Nov 2015 18:12
Location: Turkey

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

Post by drjs5x »

yes great working thanks .
Have a nice day. :appl: :appl: :appl: :appl: :appl: :appl: :appl: :appl: :appl: :cup: :cup: :cup: :cup: :cup:
newbie or not...........

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

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

Post by kotlmg »

hello sir
how to apply the above code recursively to folders and subfolders etc?

with regards

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

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

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

kotlmg
Posts: 298
Joined: 30 Jun 2010 17:14

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

Post by kotlmg »

thanks a lot.

Post Reply