WSH Panel Mod script discussion/help. |
![]() ![]() |
WSH Panel Mod script discussion/help. |
Dec 26 2012, 21:55
Post
#1951
|
|
|
Group: Members Posts: 7 Joined: 24-December 11 Member No.: 96009 |
Thanks marc2003! That's pretty much what I wanted.
There is just one thing I've changed (I can understand code but not write it For me this is perfect to see if there are new releases from an artist, the format its not really so much important. Well, if I could see if it's an EP or a complete album it would be great, but I don't know how to do that hehe. Thanks for your time again |
|
|
|
Dec 27 2012, 00:12
Post
#1952
|
|
|
Group: Members Posts: 48 Joined: 23-March 12 Member No.: 98013 |
Hi everyone. Quick question about WSH Coverflow : How can I increase the size of the font that displays the %album artist% - %album% information, without going through foobar's prefs > colors and fonts ? I don't mind hardcoding that size in the script. I just need to know what to type and where to type it. Thank you. Optionally, how can I set that same font to bold ? (within the script too). F.e. : CODE function get_font() {
if (g_instancetype == 0) { // g_font = window.GetFontCUI(FontTypeCUI.items); g_font = gdi.Font("Segoe UI", 24, 1); // or any other g_font_headers = window.GetFontCUI(FontTypeCUI.labels) } else if (g_instancetype == 1) { g_font = window.GetFontDUI(FontTypeDUI.playlists); g_font_headers = window.GetFontDUI(FontTypeDUI.tabs) } }; |
|
|
|
Dec 27 2012, 02:19
Post
#1953
|
|
![]() Group: Members Posts: 39 Joined: 10-October 10 Member No.: 84514 |
Thanks onv ! Will try that !
|
|
|
|
Dec 27 2012, 10:26
Post
#1954
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
I think because you are showing master releases, there is no need for showing the format of the release, because although it could say "vinil" it shows only the format of the oldest release (and the country of the publisher), not the other ones. makes sense. i've removed it now. use Online update on the context menu to update the script. edit: the Online update option has now been renamed to Script update. i changed it because some scripts have an Update (as in content) option and they might be confusing when seen together. This post has been edited by marc2003: Dec 27 2012, 10:49 |
|
|
|
Dec 28 2012, 21:07
Post
#1955
|
|
|
Group: Members Posts: 12 Joined: 13-June 11 From: Bulgaria Member No.: 91471 |
I have one silly problem - i can't add user picture for genre in the script - now playing with last.fm bio. place help me. tenx. marc2003 I could deal with problem alone which I have described before, by modifying lines in your "Now Playing with Last.fm Bio" script: var genre = encodeURIComponent(p.eval("%genre%")); b.buttons.but9 = new button(p.w - 540, 560, 544, 166, {normal: genre+".png", hover: "allmusic_h.png"}, function() { p.browser(allmusic); }, allmusic); but now I have another problem - when genre style of two words like - smooth jazz -> genre image not displayed. Please help me. |
|
|
|
Dec 29 2012, 11:02
Post
#1956
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
replace %genre% with $meta(genre,0)
0 is the first value, 1 is the 2nd and so on http://wiki.hydrogenaudio.org/index.php?ti...a.28name.2Cn.29 also, you probably don't need encodeURIComponent there. you only need that if putting in genre as part of a link to a website. This post has been edited by marc2003: Dec 29 2012, 11:08 |
|
|
|
Dec 29 2012, 14:44
Post
#1957
|
|
|
Group: Members Posts: 12 Joined: 13-June 11 From: Bulgaria Member No.: 91471 |
You're the top, thank you very much. Merry Christmas and Happy New Year from me
|
|
|
|
Dec 30 2012, 16:01
Post
#1958
|
|
|
Group: Members Posts: 203 Joined: 24-July 07 Member No.: 45592 |
@extracampine, i'd extract the whole marc2003 folder again. a few images have been renamed/added since. Thanks - you mean download the file from here: http://code.google.com/p/foo-wsh-panel-mod/downloads/list And install again? I did this but it didn't change anything. I already had the latest version installed I think. |
|
|
|
Dec 31 2012, 10:34
Post
#1959
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
no i meant from my samples.zip download (it contains a folder named marc2003 as per my instruction above). you've already downloaded it because the script in your panel comes with it....
but here's the link incase you need it again... http://db.tt/BInQ3Abm |
|
|
|
Jan 2 2013, 10:34
Post
#1960
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
samples updated: use the Update script option on the right click menu or the full download is in the link above.
last.fm - similar artists - top tags - top fans - top albums - top tracks: spotify wouldn't launch due to typos in script. files changed: CODE marc2003\common6.js
This post has been edited by marc2003: Jan 2 2013, 10:50 |
|
|
|
Jan 3 2013, 09:27
Post
#1961
|
|
|
Group: Members Posts: 2 Joined: 3-January 13 Member No.: 105558 |
I'm really new when it comes to this but I edited together some scripts I found here and made some buttons. They work great except I can't figure one button out. Ideally, this button would send Last.fm a 'loved track' signal using softplaylists and also rate it 5 stars using playback stats. Is that even possible to do two commands?
I found this over in the softplaylists thread but it isn't working for me, nothing shows up in console when I press it either. CODE fb.RunContextCommand("Last.fm/Last.fm Love '" + fb.TitleFormat("%title%").Eval() + "' By '" + fb.TitleFormat("%artist%").Eval() + "'"); Here's the full code I'm using. http://pastebin.com/wwVwcCmA Here's what it looks like. (Buttons on the right) http://i.imgur.com/2Thw3.jpg Also! Two of the buttons are for switching DSP modes, is it possible to combine them into one? Up state would be my Gapless DSP (like a default) and the Down state would be my Headphone DSP. Maybe I'll save that for another day and see if I can get the Love track to work first. Thanks you guys! |
|
|
|
Jan 3 2013, 11:43
Post
#1962
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
you typically process mouse click events on up, not down. also, you need quite a few more callbacks in there....
CODE metadb = fb.GetFocusItem(); function on_selection_changed() { on_item_focus_change(); } function on_playlist_switch() { on_item_focus_change(); } function on_playback_new_track() { on_item_focus_change(); } function on_item_focus_change() { //prefer playing item if playing. use selected item if playback is stopped. metadb = fb.IsPlaying ? fb.GetNowPlaying() : fb.GetFocusItem(); } then inside your click function CODE if (!metadb) return; var artist = fb.TitleFormat("%artist%").EvalWithMetadb(metadb); var title = fb.TitleFormat("%title%").EvalWithMetadb(metadb); fb.RunContextCommandWithMetadb("Last.fm Love Track '" + title + "' by '" + artist + "'", metadb); //more code to run other functions here you can't check the DSP so it's not really possible to make a proper toggable button. you could try and bodge something by storing the state manually (see window.GetProperty and window.SetProperty) but this wouldn't update if that setting was changed via the menu/preferences. |
|
|
|
Jan 3 2013, 22:46
Post
#1963
|
|
|
Group: Members Posts: 2 Joined: 3-January 13 Member No.: 105558 |
Thanks Marc, you're a lifesaver! Works great. I'll probably be back when I inevitably have more trouble.
Edit: Too bad about the toggle, not really a big deal though. I'll keep it as two buttons. This post has been edited by sym7: Jan 3 2013, 22:47 |
|
|
|
Jan 4 2013, 09:58
Post
#1964
|
|
|
Group: Members Posts: 203 Joined: 24-July 07 Member No.: 45592 |
Thanks once again Marc, I've got it up and running again. The thumbs script seems to show the thumbs without any space between them, and sometimes they overlap. Any idea how to fix this? I tried the "simple image viewer" script - this looks good, but it won't seem to show all the art in the directory at the same time - only one image at a time.
Thanks |
|
|
|
Jan 4 2013, 11:08
Post
#1965
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
the images do not overlap. they're just cropped to be square.
|
|
|
|
Jan 5 2013, 11:00
Post
#1966
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
samples updated: http://db.tt/BInQ3Abm
new script: now playing with track list ![]() the track display isn't functional like a proper playlist. it's only really meant for displaying single albums at a time. things it can do- highlight the playing track scroll using the mouse double click a track to start playing updates on playlist switch/tag updates/tracks added, removed or re-order things it can't do- everything else you can hack around around and change the title formatting on lines 137-140. files added/changed: CODE marc2003\common6.js samples\now playing with track list.txt |
|
|
|
Jan 5 2013, 13:27
Post
#1967
|
|
|
Group: Members Posts: 82 Joined: 27-May 10 Member No.: 80935 |
|
|
|
|
Jan 6 2013, 21:15
Post
#1968
|
|
|
Group: Members Posts: 5 Joined: 16-December 12 From: Argentina Member No.: 105215 |
Marc2003 you thought of making lyrics in wsh panel?
|
|
|
|
Jan 7 2013, 04:03
Post
#1969
|
|
![]() Group: Members Posts: 202 Joined: 8-September 07 From: Hamburg, GER Member No.: 46899 |
|
|
|
|
Jan 7 2013, 10:30
Post
#1970
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
|
|
|
|
Jan 9 2013, 03:38
Post
#1971
|
|
|
Group: Members Posts: 12 Joined: 11-July 09 From: California Member No.: 71369 |
Hey marc, is there any easy way to remove the cover art and playback buttons from the now playing script (the regular one, not the one with bio or track list) so I can display the artwork in a separate panel and give more room for the artist name and track titles?
I tried editing some of the code myself but couldn't quite figure it out. |
|
|
|
Jan 9 2013, 10:45
Post
#1972
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
samples updated: http://db.tt/BInQ3Abm
new script: ok, so i changed my mind and made a simple tag reader. displays mutli-line tags in panel. looks a bit like Bollerkopp's screenshot above. ![]() files changed/added: CODE marc2003\common6.js samples\simple tag reader.txt tip: you can edit my now playing with last.fm bio panel to replace the bio with the tag display simply by editing the code on line 12 change this... CODE var p = new panel("Now Playing with Last.fm Bio", ["lastfm_bio", "remap", "cd", "images"]); to CODE var p = new panel("Now Playing", ["simple_tag", "remap", "cd", "images"]); @Reith. http://dl.dropbox.com/u/22801321/now%20playing%20mod.txt This post has been edited by marc2003: Jan 9 2013, 10:56 |
|
|
|
Jan 9 2013, 19:03
Post
#1973
|
|
![]() Group: Members Posts: 202 Joined: 8-September 07 From: Hamburg, GER Member No.: 46899 |
Hey marc2003,
wow... that is really great. Thank you very much for this tag reader script. And for your general work here of course. |
|
|
|
Jan 10 2013, 00:57
Post
#1974
|
|
|
Group: Members Posts: 12 Joined: 11-July 09 From: California Member No.: 71369 |
Thanks, it works great.
|
|
|
|
Jan 10 2013, 10:37
Post
#1975
|
|
![]() Group: Members Posts: 3292 Joined: 27-January 05 From: England Member No.: 19379 |
samples updated: http://db.tt/BInQ3Abm
bugfix: addition of simple tag reader script yesterday caused my simple text reader script to break. new: simple text reader now has a customisable title like the tag reader. misc: now playing with tracklist. code tidyup. files changed: CODE marc2003\common6.js samples\now playing with tracklist.txt samples\simple tag reader.txt samples\simple text reader.txt you can check the latest versions of all scripts here: http://dl.dropbox.com/u/22801321/wsh/versions.txt |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 16:48 |