Shop Mobile More Submit  Join Login
WSH library search V1.0 by thanhdat1710 WSH library search V1.0 by thanhdat1710
A Jscript for WSH panel Mod v1.5.6+, foobar2000 panel for CUI or DUI

Using explorer and search music in your library,


Feature:
    - Search library.
    - Grouph by Relative Path,Album, Artist, Genre, User define.
    - Smooth scroll.
    - Quick Search
...

Important note:

    - Untick 'Safe Mode' option in WSH panel Mod settings (from foobar2000 menu File> Preferences), or you'll encounter a Awcrash message on startup.

    - Configure your library relative path (from panel contextmenu Preferences > Configure Library Path) if you want grouph by Path.

    - Change to Jscript9 to improve perfomance


Update 17/5/2015:

-Add QuickSearch(auto scroll )
-Improve perfomance (about 0.035 ->  0.4 second for my library +75000 song, and no lag)


Update 1/9/2013:

- Copy, Paste, Cut,Undo or Reddo in text box with keyboard shortcut.
- Fix some error.

Update 2/9/2013:
- Improve perfomance.

Update 5/9/2013:
- Improve perfomance.(Upto 100%)

Update 23/10/2013:
-Fix the panel doesn't redraw when you restore foobar2000 window after a minimize.
Add a Comment:
 
:icondu22y:
du22y Featured By Owner May 8, 2015

Hello!
Help please to remove the top search string i don't get it how?

And raise the list of folders in place of the search string.
really need any help.;-)
Sorry for my bad English

Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner May 17, 2015  Student Interface Designer
sorry for delay, this is your need.
pastebin.com/7pnQYm8E
Reply
:icondu22y:
du22y Featured By Owner May 17, 2015
Hi ! Yes this is what I need. Thank you very much.;-)
Reply
:iconmarkkoenig:
Markkoenig Featured By Owner May 1, 2015
I'm really trying to make this work, but the sorting options... I just do not get it. Where are they? Where is the "User" grouping scheme? How do I stop the script from sorting my entire library track by track in different subfolders?
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner May 17, 2015  Student Interface Designer
you can right click > preference > properties 

www.flickr.com/photos/vothanhd…
Reply
:icontarkus721:
tarkus721 Featured By Owner Nov 28, 2013
"Add to Playing Playlist" always adds after the first track in the playing playlist, when it should (I would think) at the end of the playing playlist.
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Nov 28, 2013  Student Interface Designer
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 6, 2013  Hobbyist Interface Designer
another problem that you have to resolve (possible, i've fixed it in my mod) is that the panel doesn't redraw when you restore foobar2000 window after a minimize. check, you'll see that a mouse hover is require to enforce a repaint of main area and a click in top box to redraw it too. It's due to that on restore, a repaint() is automatically generated but repaint_main or repaint_f still set to false, so panel stay black on restore :p
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 6, 2013  Student Interface Designer
yes, i will fix it.
Reply
:iconmire777:
mire777 Featured By Owner Sep 6, 2013
Is it possible to search, not only Library but single playlist?
To replace Quick Search component with  WSH.
I played a little with Br3tt Library Search, and add some genre preset, and change the look: pastebin.com/0h1Tqn93
I love how it works, the most important thing is usability...
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 6, 2013  Hobbyist Interface Designer
yes posibble by modding the script, because for now it work on a playlist too, generated on launch, so, you just have to tell to the script which playlist to use as "source" for populating the tree.
Reply
:iconmire777:
mire777 Featured By Owner Sep 6, 2013
Great, thank you..
Reply
:iconmarkkoenig:
Markkoenig Featured By Owner Sep 5, 2013
Well, I replaced the Library Tree in slowboyfast's Placebo Monolithic skin with this one, at first the background was black, then I did something it was transparent just as I wanted, and then, after restarting foobar, the background came black again, and though I've checked every possible parameter, I cannot find the reason why nor the way to have the transparency back. I might need some help, if you have time.
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 5, 2013  Student Interface Designer
dont forget tick "Pseudo Transparent" in script editor.
Reply
:iconmarkkoenig:
Markkoenig Featured By Owner Sep 10, 2013
I had done it, but it didn't seem to do anything. Anyway, I've tried to work it out differently, and now my problem is that I don't find a way to have a semi-transparent background, as you can see for example on the Playlist panel : fav.me/d6l4p2a Besides, I have troubles setting my folders : I fought to have the Y:\ directory you see, but it's impossible to add another one, even though I deleted the first directory ; it doesn't change anything whether I set it up in your panel's configuration window or in the Media Library prefs tab of foobar, or both. I must have missed something.
Reply
:iconmarkkoenig:
Markkoenig Featured By Owner Sep 10, 2013
Don't mind the directory issue, got it fixed in one sec -_-'
Reply
:iconmarkkoenig:
Markkoenig Featured By Owner Sep 11, 2013
Alright, seems like another transparency setting or some layer/layout confusion was messing this up. Fixed.
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 2, 2013  Hobbyist Interface Designer
another issue, always in get_library() => if library folders are mulltiples, for example, i examine D:\MP3 and E:\Music\MP3\, the grouph_by = 0 give multiples groups D:\MP3 and E:\Music\MP3\, and just because the OrderByRelativePath used in this function is not adapted, you have to use the SortByFormat method on %path% TF parameter.

list.OrderByFormat() to add in get_library to fix the sort issue when grouph_by >0...

(grouph_by == 0) && list.OrderByFormat(fb.TitleFormat("%path%"), 1);
(grouph_by > 0) && list.OrderByFormat(fb.TitleFormat((grouph_by == 3)?grouph_option:art_alb_sort), 1);

HTH
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
here is my modded script look: img69.imageshack.us/img69/3299…
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 1, 2013  Student Interface Designer
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
thanx to you
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
may i report 2 little issues?
... i do :p
1) "&" char badly handled on gdiDrawText if you don't add DT_NOPREFIX option (0x00000800), happens on my genre "R&B" displayed  "RB" ==> easy to fix
2) problem to expand not working at all on an artist branch when it contains an album which the name is the the artist name itself! (album self titled). example: "Franz Ferdinand" album from artist "Franz Ferdinand" !
renaming %album% to Franz_Ferdinand has solved temporaly the issue, but fix needed please.

I've modded on_paint() to draw head_ appart in order to use a fixed width font for (+) and (-) and a special color too, far better IMHO ;)
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 1, 2013  Student Interface Designer
the problem caused by caused by function tree_expant(obj) and i fixed it.
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
thanx, far better :)

FYI, on resize panel, type search top panel is not refreshed, i've added "repaint_f = true" in on_size() Callback.
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
little question: Why do you set a timeout of 5 second before calling get_pl_tree() ?
thanx by advance.
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 1, 2013  Student Interface Designer
 the function get_pl_tree() is run very slow, so i think it make foobar start slowly if don't set timeout. I will try optimize that funtion. thanks for your question. 
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
personnaly, on a library of +45000 tracks, it takes less than 1500 ms to populate the tree, and i've set the starter Timeout to 100ms, it's far better IMHO :p
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 1, 2013  Student Interface Designer
can you test performance for it.
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
finnaly, are you sure it's a better way to populate ? because it finally takes more time than previous method even if display is present faster, but we can't scroll untill the process is finished when we expand a node, so, no really usable until the end of the load :( (scroll is ok if no node expanded during the load, maybe just a fix to code?)
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 3, 2013  Student Interface Designer
im try to fix but it is very hard, i think i have to find other solution
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 3, 2013  Hobbyist Interface Designer
i do it differently o,n the script mod posted on your profile Deviant page, have you checked it ?
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Sep 5, 2013  Student Interface Designer
oh,i have checked it, it very cool and faster my script before, the panel is filled immediatle.
and i had optimized my script, in my library of +6000 track, it take  30ms -> 50ms to search, can you test performance for it?
Sorry for late.
Reply
(2 Replies)
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
good idea the progressive populating display :) but no scroll available during the loading,
One problem at least => the sort is Now always based on the folder structure and no more on TAG even in group by Artist - Album ... can you fix that ?
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 2, 2013  Hobbyist Interface Designer
list.OrderByFormat() to add in get_library to fix the sort issue when grouph_by >0...
Reply
:iconbr3tt:
Br3tt Featured By Owner Sep 1, 2013  Hobbyist Interface Designer
It rocks dude! well done now ;)
Reply
:iconbr3tt:
Br3tt Featured By Owner Jul 7, 2013  Hobbyist Interface Designer
Nice try. Check WSH panel Mod Thread on Hydrogenaudio forum about tour request dor getting library path
Reply
:iconkennith121:
kennith121 Featured By Owner Jun 7, 2013
Please, the breazen plagiarization sucks so much that no one can stand it
Reply
:iconthedarkerone:
thedarkerone Featured By Owner Jun 7, 2013
Yeah, if this uses part of Bretts' stuff...it needs to be reported.
Reply
:iconthanhdat1710:
thanhdat1710 Featured By Owner Jun 7, 2013  Student Interface Designer
sorry, that picture just to example "WSH library search V1.0" in myskin foobar.
i'll reupload picture.
Reply
Add a Comment:
 
×
Download RAR download, 9.6 KB


Details

Submitted on
June 6, 2013
File Size
9.6 KB
Link
Thumb
Embed

Stats

Views
7,697 (5 today)
Favourites
5 (who?)
Comments
45
Downloads
706 (1 today)
×