IPB

Welcome Guest ( Log In | Register )

143 Pages V  « < 77 78 79 80 81 > »   
Reply to this topicStart new topic
WSH Panel Mod script discussion/help
Koyber
post Dec 26 2012, 21:55
Post #1951





Group: Members
Posts: 9
Joined: 24-December 11
Member No.: 96009



Thanks marc2003! That's pretty much what I wanted. smile.gif
There is just one thing I've changed (I can understand code but not write it tongue.gif). 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.
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 smile.gif
Go to the top of the page
+Quote Post
onv
post Dec 27 2012, 00:12
Post #1952





Group: Members
Posts: 48
Joined: 23-March 12
Member No.: 98013



QUOTE (wcs13 @ Dec 26 2012, 03:23) *
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. smile.gif

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)
    }
};
Go to the top of the page
+Quote Post
wcs13
post Dec 27 2012, 02:19
Post #1953





Group: Members
Posts: 97
Joined: 10-October 10
Member No.: 84514



Thanks onv ! Will try that !
Go to the top of the page
+Quote Post
marc2003
post Dec 27 2012, 10:26
Post #1954





Group: Members
Posts: 4891
Joined: 27-January 05
From: England
Member No.: 19379



QUOTE (Koyber @ Dec 26 2012, 20:55) *
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
Go to the top of the page
+Quote Post
kaloian79
post Dec 28 2012, 21:07
Post #1955





Group: Members
Posts: 13
Joined: 13-June 11
From: Bulgaria
Member No.: 91471



QUOTE (kaloian79 @ Dec 14 2012, 00:08) *
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.
Go to the top of the page
+Quote Post
marc2003
post Dec 29 2012, 11:02
Post #1956





Group: Members
Posts: 4891
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
Go to the top of the page
+Quote Post
kaloian79
post Dec 29 2012, 14:44
Post #1957





Group: Members
Posts: 13
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
Go to the top of the page
+Quote Post
extracampine
post Dec 30 2012, 16:01
Post #1958





Group: Members
Posts: 206
Joined: 24-July 07
From: United Kingdom
Member No.: 45592



QUOTE (marc2003 @ Dec 19 2012, 09:43) *
@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.
Go to the top of the page
+Quote Post
marc2003
post Dec 31 2012, 10:34
Post #1959





Group: Members
Posts: 4891
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
Go to the top of the page
+Quote Post
marc2003
post Jan 2 2013, 10:34
Post #1960





Group: Members
Posts: 4891
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. rolleyes.gif

files changed:
CODE
marc2003\common6.js


This post has been edited by marc2003: Jan 2 2013, 10:50
Go to the top of the page
+Quote Post
sym7
post 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! smile.gif
Go to the top of the page
+Quote Post
marc2003
post Jan 3 2013, 11:43
Post #1962





Group: Members
Posts: 4891
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.
Go to the top of the page
+Quote Post
sym7
post 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
Go to the top of the page
+Quote Post
extracampine
post Jan 4 2013, 09:58
Post #1964





Group: Members
Posts: 206
Joined: 24-July 07
From: United Kingdom
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
Go to the top of the page
+Quote Post
marc2003
post Jan 4 2013, 11:08
Post #1965





Group: Members
Posts: 4891
Joined: 27-January 05
From: England
Member No.: 19379



the images do not overlap. they're just cropped to be square.
Go to the top of the page
+Quote Post
marc2003
post Jan 5 2013, 11:00
Post #1966





Group: Members
Posts: 4891
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 tongue.gif

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

Go to the top of the page
+Quote Post
mjm716
post Jan 5 2013, 13:27
Post #1967





Group: Members
Posts: 159
Joined: 27-May 10
From: EST
Member No.: 80935



QUOTE (marc2003 @ Jan 5 2013, 12:00) *
things it can't do-
everything else tongue.gif


from playcount, appears to be your album of the year - admit it though, you're just hot for Natasha wink.gif

here's to a foobar rich 2013
Go to the top of the page
+Quote Post
Yeksfys
post Jan 6 2013, 21:15
Post #1968





Group: Members
Posts: 6
Joined: 16-December 12
Member No.: 105215



Marc2003 you thought of making lyrics in wsh panel? cool.gif
Go to the top of the page
+Quote Post
Bollerkopp
post Jan 7 2013, 04:03
Post #1969





Group: Members
Posts: 205
Joined: 8-September 07
From: Hamburg, GER
Member No.: 46899



Oh yes, a simple lyrics panel in the look of your other panels (bigger and underlined font at the top) would be really great, Marc. smile.gif

Perhaps something like this:

Go to the top of the page
+Quote Post
marc2003
post Jan 7 2013, 10:30
Post #1970





Group: Members
Posts: 4891
Joined: 27-January 05
From: England
Member No.: 19379



QUOTE (Yeksfys @ Jan 6 2013, 20:15) *
Marc2003 you thought of making lyrics in wsh panel? cool.gif


nope. i have no interest in lyrics at all.

also, falstaff has already created a lyrics panel. search the thread - it's in here somewhere.
Go to the top of the page
+Quote Post
Reith
post Jan 9 2013, 03:38
Post #1971





Group: Members
Posts: 35
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.
Go to the top of the page
+Quote Post
marc2003
post Jan 9 2013, 10:45
Post #1972





Group: Members
Posts: 4891
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. tongue.gif



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
Go to the top of the page
+Quote Post
Bollerkopp
post Jan 9 2013, 19:03
Post #1973





Group: Members
Posts: 205
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. smile.gif
Go to the top of the page
+Quote Post
Reith
post Jan 10 2013, 00:57
Post #1974





Group: Members
Posts: 35
Joined: 11-July 09
From: California
Member No.: 71369



Thanks, it works great.
Go to the top of the page
+Quote Post
marc2003
post Jan 10 2013, 10:37
Post #1975





Group: Members
Posts: 4891
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. rolleyes.gif
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
Go to the top of the page
+Quote Post

143 Pages V  « < 77 78 79 80 81 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
1 Members: anceps

 



RSS Lo-Fi Version Time is now: 26th December 2014 - 16:47