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: Spider Monkey Panel (foo_spider_monkey_panel) (Read 362993 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1301
Not sure why it would be called so much. I even stumped ChatGPT. hehe.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1302
Well your code snippet indicates you want the playing track colours. You should be calling it when the track changes via on_playback_new_track - typically once every few minutes. What are you doing?

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1303
I'm not using that snippet. I just pasted here for an example.

I just noticed Darkone 2019 also uses it as well in their cover art but I have no idea why it's there. Being beta It was probably just unfinished.

PS: Just got it working in Darkone. The picture frame now changes color according to artwork, but of course without further color picker code it looks bad with dark or black artwork.

Still can't figure out why I can't get it working in some other environments but I'll keep working on it.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1304
Well my top tip for the day is that you only want the to use the retrieved colours for backgrounds. The text colour should be determined from the background automatically so it contrasts. I'm using these functions stolen from the foobar2000 C++ SDK and ported to javascript....

Code: [Select]
// getRed etc should be in docs\helpers.js

function Luminance(colour) {
var r = getRed(colour);
var g = getGreen(colour)
var b = getBlue(colour);
return (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255.0;
}

// The resulting text colour is always black or white....
function DetermineTextColour(background) {
var l = Luminance(background);
if (l > 0.6) {
return RGB(0, 0, 0);
} else {
return RGB(255, 255, 255);
}
}

Now...

Code: [Select]
var bg = // most dominant colour extracted by GetColourSchemeJSON
var txt = DetermineTextColour(bg);

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1305
I'll take a look at this tomorrow. Thanks!

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1306
Hello, my first steps with scripting months ago and now my DUI interface is finished.  I want to say "Thank you" to @TheQwertiest and all the other authors who shared their work and knowledge. So I decided to share a bit of my work which I find particularly successful - my version of album art with reflection.

For me it works perfectly but I am a beginner. Maybe the code is terrible and you'll find some copied code snippets but I went my own way.



Attached script is without the buttons and codec info...

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1307
Does SMP remember utils.ColourPicker settings? As in showing the current values being used. (As opposed to just showing black). I just want to make sure the menu is working properly.


Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1309
Ok, good to know it's 'normal' behavior.


Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1311
I've attached a new compile based on 1.6.1 with some fixes.

-A bug with utils.IsFile / utils.IsDirectory throwing script errors instead of returning false when trying unavailable drives has been fixed.
-The colour picker now functions as expected and custom colours can be added/stored until fb2k closes.
-There are utils.GetClipboardText and utils.SetClipboardText methods which are generally nicer than messing around with ActiveX objects. Some people who previously had dev builds might be used to these already.


Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1312
Hahaha, just released a new beta and now I see this, should have checked before xD
Thanks anyways @marc2k3 =)

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1313
I've attached a new compile based on 1.6.1 with some fixes.

-A bug with utils.IsFile / utils.IsDirectory throwing script errors instead of returning false when trying unavailable drives has been fixed.
-The colour picker now functions as expected and custom colours can be added/stored until fb2k closes.
-There are utils.GetClipboardText and utils.SetClipboardText methods which are generally nicer than messing around with ActiveX objects. Some people who previously had dev builds might be used to these already.

I gonna change my username to some people  ;) 

Thank you very much

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1314
So the compile I posted earlier only had fixes by myself. This one also includes fixes by TheQwertiest for pseudo transparency and tooltip TrackPosition().









Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1315
@marc2k3,

foo_spider_monkey_panel\docs\html directory is missing and can you rename to v1.6.1-5-g7c0928bf in
Preferences > Components > Installed Components > Spider Monkey Panel

Thanks

-TT

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1316
I'm only appending -mod to the version so you know it's not official. Docs have been restored. This also has most 3rd party dependencies updated to latest versions.

edit: I forgot to mention I refactored the pseudo-transparency to use code from the Columns UI SDK.

Changes are on my personal copy on github: https://github.com/marc2k3/spider-monkey-panel/commit/eed51320c7d38ced4ecd68bc110e6f1f27508c07



Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1318
Nope, not happening. I'd have to instal linux/WINE to test and I'm not wasting my time with that shit.

If people want to use a media player written for windows with components written for windows, they should use windows.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1319
Come on Marc...
we know you're a good guy that helps people. Think of it that you will accumulate additional positive + karma points
and have hope for a good afterlife O:)

The problem is, that on Linux there aren't that many good music players...

I'm crossing my fingers anyways, otherwise there will be a RIOT ;-)

-TT

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1320
Nope, not happening. I'd have to instal linux/WINE to test and I'm not wasting my time with that shit.

If people want to use a media player written for windows with components written for windows, they should use windows.

If you need to do testing with wine, feel free to contact me. I will be happy to help.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1321
Good to know that paregistrase is on board, I know that many others are too.
We can also start a petition to convince Marc otherwise =)

-TT

 

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1323
What planet are you cunts from? Honestly, I'll take a permanent forum ban at this point.

There is no need to disrespect anybody.
If you can't behave like a person in public is nobody fault.

Re: Spider Monkey Panel (foo_spider_monkey_panel)

Reply #1324
Man Marc... At this point I thought we were no complete strangers at all.
I guess there will be no more jokes in the future, I tried and I failed :(

-TT