Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: WSH Panel Mod script discussion/help (Read 1400030 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

WSH Panel Mod script discussion/help

Reply #4425
The button suggestion was ideal for placing buttons in your control script. Going for an all-in-one solution just got that much easier. Still unsure of exactly what I want to do, but I'm getting there. One thing I noticed with the receiver panel when properties.txt is used is it doesn't update like a stand alone panel would on metadata changes. EG: Rating or setting mood in stand alone will refresh and update in the panel. In the receiver version you need to click off/on track in the playlist to reflect the change. Not a big deal and maybe unavoidable.

Brace yourself - incoming crazy. How feasible is using the same script twice? In particular, Falstaff's JSSBrowser. Reason I'm asking is it can be configured in a number of ways. I have found in my PSS config that "source: playlist + column: album" in one panel and "source: library + column: artist" in another is really a great way to move around the library. However, your switcher is limited to whatever is in the text it's fed. My gut says this is a no go unless each script was unique and setup specifically for each. I have a Plan B but wondered if you could weigh in on it.

WSH Panel Mod script discussion/help

Reply #4426
1) the preprocessor section was incomplete. this should work...

Code: [Select]
// ==PREPROCESSOR==
// @author "marc2003"
// @name "Panel Receiver"
// @feature "v1.4"
// @feature "watch-metadb"
// ==/PREPROCESSOR==


2) possible but you'd have to hack the receiver so it sets some panel properties specific for each script. you really need to be familiar with window.GetProperty and window.SetProperty to do it because i'm not doing it for you.

WSH Panel Mod script discussion/help

Reply #4427
@marc2003
Is it possible to change change type of text displays on your "Allmusic review"/"Last.fm Bio" scripts by changing something like
Code: [Select]
text.mode="allmusic";
text.mode="lastfm_bio";

I want to change it by a button, is it possible??

And can you put artist field remapping on Musicbrainz panel too

 

WSH Panel Mod script discussion/help

Reply #4428
if you use my modded component version 1.5.7.1 or later...

Code: [Select]
var mode = window.GetProperty("mode", "allmusic");

var panel = new _.panel("Text Panel", ["metadb", "remap"]);
var text = new _.text(mode, 10, 24, 0, 0);


then one of your button functions could contain this...

Code: [Select]
window.SetProperty("mode", "lastfm_bio");
window.Reload();


as for the musicbrainz script, it only uses IDs and doesn't do any artist searches. although it uses the artist for the folder name, each filename contains the ID so you could have multiple artists with the same name sharing the same folder but each one would display its own releases correctly.

WSH Panel Mod script discussion/help

Reply #4429
if you use my modded component version 1.5.7.1 or later...

Code: [Select]
var mode = window.GetProperty("mode", "allmusic");

var panel = new _.panel("Text Panel", ["metadb", "remap"]);
var text = new _.text(mode, 10, 24, 0, 0);


then one of your button functions could contain this...

Code: [Select]
window.SetProperty("mode", "lastfm_bio");
window.Reload();

Thanks marc!! actually this opens up lot possibilities

Quote
as for the musicbrainz script, it only uses IDs and doesn't do any artist searches. although it uses the artist for the folder name, each filename contains the ID so you could have multiple artists with the same name sharing the same folder but each one would display its own releases correctly.

I see, I used the text file saved from your old script to tag musicbrainz ID's .And i must have forgotten to set formatting there :/
Anyway what do you use to tag musicbrainz ID's to  single tracks ( component only tag full albums ) ??

WSH Panel Mod script discussion/help

Reply #4430
there is no software i know of for tagging single tracks with MBIDs. most of my single tracks are by artists already in my library so i just copied them over.

my current musicbrainz panel contains a right click menu item that searches launches a browser to search the MB website for the current artist when there is no MBID present. when you select the correct artist from the search results, you're taken to a page like this..

musicbrainz.org/artist/11c6b106-1c1f-429d-8407-b1ee155d7f72

the part in bold is what you want to save in the MBID artist tag.

WSH Panel Mod script discussion/help

Reply #4431
I don't suppose we can get the playcount info from listenbrainz into our tags in some way yet, with the API stuff they released? The Playcount Sync script for last.fm is giving errors pretty often (on any song that hasn't been scrobbled before it gives errors for a while--it's weird). Since they messed everything up so badly, I'm itching to leave last.fm behind for greener pastures.

WSH Panel Mod script discussion/help

Reply #4432
if you want playback stats, use foo_playcount. that really is the only realistic solution at the moment.

WSH Panel Mod script discussion/help

Reply #4433
I think I should have asked this differently: post #4424. Could a single referenced font symbol be forced to replace the names without breaking the script if they are all the same? eg: If you rename the first two items in your chooser script to "Art" it will only use one instance regardless of what the following attached scripts are.

Images are fine in a monochrome background but if a gradient is applied you have to be very selective on color choices so they don't get washed out. Example. Ratings uses guifx '4' font and transitions nicely with alpha blending no matter what the background color is.

I didn't realize at the time that that would happen because I was testing in a monochrome setting. Kind of stumped trying to find an alternative here that does what I want.

WSH Panel Mod script discussion/help

Reply #4434
Quote
If you rename the first two items in your chooser script to "Art" it will only use one instance regardless of what the following attached scripts are.


yet again i have no idea what you are dribbling on about. if you can't look at the code in front of you and figure out how to change the font then you should just stop.

WSH Panel Mod script discussion/help

Reply #4435
Example spelled out explicitly.

Code: [Select]
var scripts = {
    "Art" : "wsh_marc2003\\samples\\album art.txt",
    "Art" : "wsh_marc2003\\samples\\allmusic review.txt",
    "Bio" : "wsh_marc2003\\samples\\last.fm bio.txt",
    "Bio" : "wsh_marc2003\\samples\\last.fm artist info - user charts - recommendations - recent tracks.txt",
    "Cat" : "wsh_marc2003\\samples\\musicbrainz.txt",
    "Cat" : "wsh_marc2003\\samples\\echonest news - reviews - blogs.txt",
    "Dog" : "wsh_marc2003\\samples\\properties.txt",
    "Dog" : "wsh_marc2003\\samples\\thumbs.txt"
}



Changing the font is not the issue. Reusing the same Name (symbol) more than once is.

WSH Panel Mod script discussion/help

Reply #4436
edit this instead...

Code: [Select]
// ==PREPROCESSOR==
// @author "marc2003"
// @name "Panel Chooser"
// @import "%fb2k_profile_path%wsh_marc2003\js\lodash.min.js"
// @import "%fb2k_profile_path%wsh_marc2003\js\helpers.js"
// @import "%fb2k_profile_path%wsh_marc2003\js\panel.js"
// ==/PREPROCESSOR==

var panel = new _.panel("Panel Chooser");
var row_height;
var index = -1;
var scripts = [
    ["Album art", "wsh_marc2003\\samples\\album art.txt"],
    ["Allmusic", "wsh_marc2003\\samples\\allmusic review.txt"],
    ["Last.fm Bio", "wsh_marc2003\\samples\\last.fm bio.txt"],
    ["Last.fm Info", "wsh_marc2003\\samples\\last.fm artist info - user charts - recommendations - recent tracks.txt"],
    ["Musicbrainz", "wsh_marc2003\\samples\\musicbrainz.txt"],
    ["News / Reviews / Blogs", "wsh_marc2003\\samples\\echonest news - reviews - blogs.txt"],
    ["Properties", "wsh_marc2003\\samples\\properties.txt"],
    ["Thumbs", "wsh_marc2003\\samples\\thumbs.txt"]
];

function on_size() {
    panel.size();
}

function on_paint(gr) {
    panel.paint(gr);
    row_height = panel.fonts.title.Height + 10;
    if (index >=0 && index < scripts.length)
        gr.FillSolidRect(0, index * row_height, panel.w, row_height, panel.colours.header);
    _.forEach(scripts, function (item, i) {
        gr.GdiDrawText(item[0], panel.fonts.title, panel.colours.text, 5, i * row_height, panel.w - 10, row_height, LEFT);
    });
}

function on_mouse_move(x, y) {
    var new_index = _.floor(y / row_height);
    if (index != new_index) {
        index = new_index
        window.SetCursor(index < scripts.length ? IDC_HAND : IDC_ARROW);
        window.Repaint();
    }
}

function on_mouse_lbtn_up(x, y) {
    if (index < scripts.length)
        window.NotifyOthers("load_script", scripts[index][1]);
}

function on_mouse_leave() {
    index = -1;
    window.Repaint();
}


WSH Panel Mod script discussion/help

Reply #4437
there is no software i know of for tagging single tracks with MBIDs. most of my single tracks are by artists already in my library so i just copied them over.

my current musicbrainz panel contains a right click menu item that searches launches a browser to search the MB website for the current artist when there is no MBID present. when you select the correct artist from the search results, you're taken to a page like this..

musicbrainz.org/artist/11c6b106-1c1f-429d-8407-b1ee155d7f72

the part in bold is what you want to save in the MBID artist tag.

I did't saw that ,This is real handy


And for the panel chooser script if you add  a edit option that will open the relevant txt file in your text editor  (with  WshShell.Run("notepad.exe file\\path");  ) will be really usefull

WSH Panel Mod script discussion/help

Reply #4438
if anybody who uses my scripts wants to use custom tooltip fonts i added in the latest version of WSH panel mod, you can save this file inside wsh_marc2003\js

https://raw.githubusercontent.com/19379/wsh...r/js/helpers.js

restart foobar if running and then hold down shift and right click any panel that uses tooltips>Properties.



WSH Panel Mod script discussion/help

Reply #4440
Hey guys,

I've tried to find the answer to my question via web-search but did not find anything that would help me. Is "loving" tracks still working for last.fm? My track playcount is woking like it used to, but loving a track does not work as it should - if I press "love track" button, the console gives the message "Last.fm Playcount Sync: Contacting Last.fm...." and nothing happens until the playcount updates, only then the heart appears next to updated playcount number. Any way to fix this? Cause loving tracks was a nice way to sort them in the library via filter.
I guess it has something to do with their new API policies, and probably this should not work and I'm lucky that it's working at all. But maybe there's a new workaround to make these functions work?



WSH Panel Mod script discussion/help

Reply #4443
just letting you guys know that any further script updates by myself will require my updated component which means no more support for windows XP. i'm going to be using new functions that i've added and i'm not maintaining 2 versions of my scripts.

WSH Panel Mod script discussion/help

Reply #4444
Hi,

I am new here. What I would like to know is: is it possible to add a popup modifying the CoverFlow script?

I have WSH CoverFlow 1.4 and it works very well. Is it possible to add a few lines, so it would show content of custom defined tags (as %artist% %album% etc) on mouse hover while in CoverFlow Mode?

I think that should be possible, but I know nothing about programming.

Thank you very much.



WSH Panel Mod script discussion/help

Reply #4445
Hello, I'm getting errors when trying to import on every sample
Code: [Select]
Component update: Checking for: foo_uie_wsh_panel_mod / WSH Panel Mod / 1.5.2
Error: WSH Panel Mod (Seekbar by marc2003): Parsing file "C:\Documents and Settings\Mat\Escritorio\Foobar2000 Portable\Foobar2000 Portable\js_marc2003\js\lodash.min.js": Failed to load
Error: WSH Panel Mod (Seekbar by marc2003): Parsing file "C:\Documents and Settings\Mat\Escritorio\Foobar2000 Portable\Foobar2000 Portable\js_marc2003\js\helpers.js": Failed to load
Error: WSH Panel Mod (Seekbar by marc2003): Parsing file "C:\Documents and Settings\Mat\Escritorio\Foobar2000 Portable\Foobar2000 Portable\js_marc2003\js\seekbar.js": Failed to load
Error: WSH Panel Mod (Seekbar by marc2003): Microsoft JScript runtime error:
'_' is undefined
File: <main>
Ln: 9, Col: 1

Maybe is because I'm using Windows XP?

Edit: Jscript component is "not loaded". I should have posted in the JScript topic...

WSH Panel Mod script discussion/help

Reply #4446
You have a whole heap of issues going on there....

First of all, you didn't extract the files as instructed. That's why it's reporting failure to load files.
Having said that, it doesn't matter because JScript Panel scripts won't work with WSH panel mod.
Also, you can't switch to JScript Panel because it won't even run on Windows XP. It requires Vista or later.

What you can do is grab the last version of my WSH panel mod scripts from this forum post: https://www.hydrogenaud.io/forums/index.php...st&p=910608

Also, I'd update your WSH Panel Mod to version 1.5.6 - https://code.google.com/p/foo-wsh-panel-mod/downloads/list

Ignore that updated version of WSH panel mod in the forum post as it won't run on XP either!

WSH Panel Mod script discussion/help

Reply #4447
Thank you Marc2003, I had it named as the extracted folder...removed that "-v13" now the scripts are loading; some work like Last.fm bio and some others like similar artist don't (the wsh panel loads but not the info). I will run it in a Windows 7 machine... in the end I may have to use virtualization...

WSH Panel Mod script discussion/help

Reply #4448
Someone didn't check the readme...

Quote
Extract the zip contents in to a folder named "wsh_marc2003" inside your foobar2000 profile, usually located at %appdata%\foobar2000. If using portable mode then it should go inside the main foobar2000 folder.


and

Quote
////////////////Last.fm Known Issues///////////////////////

From reading the new Last.fm forum, it appears that API account creation is disabled. This means if you don't already have an API key, you won't be able to use the "Last.fm Artist Info / User Charts / Recent Tracks script".






WSH Panel Mod script discussion/help

Reply #4449
too fast reading... guilty 
"Virtue engenders vice"