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 1507093 times) previous topic - next topic
0 Members and 12 Guests are viewing this topic.

WSH Panel Mod script discussion/help

Reply #876
Hi to all.
How can I open DSP component from external button instead from main menu.The following comand doesn't work for DSP only for the Equalizer :
Quote
var imgPath = configPath + "Buttons\\Control\\";

Buttons.a = new Button(0, 22, 60, 14, {normal: imgPath + "AddOnAlone.png", hover: imgPath + "AddOnAloneMH.png"}, function(){fb.RunMainMenuCommand("View/Equalizer");});
Buttons.b = new Button(83, 22, 58, 14, {normal: imgPath + "AddOnLeft.png", hover: imgPath + "AddOnLeftMH.png"}, function(){fb.RunMainMenuCommand("View/DSP/Crossfader");});

WSH Panel Mod script discussion/help

Reply #877
@djphatic... and you haven't modified the script at all? i find it hard to believe that would happen with my original. 

also, right click the panel and hit update. that will force it to download the page from last.fm again (but i really don't think that could be an issue either?????  )


No, haven't modified the script at all - exactly the same from the zip. I tried the force update but it didn't make any difference.

WSH Panel Mod script discussion/help

Reply #878
well sorry but i can't reproduce that at all. i know the width of the panel isn't the problem because the last.fm logo is drawn in the right place. very odd!

if you were using an older version of my scripts, did you overwrite the "marc2003" folder with files from the latest zip?

WSH Panel Mod script discussion/help

Reply #879
if you were using an older version of my scripts, did you overwrite the "marc2003" folder with files from the latest zip?


Yep, just done it again to make sure. I'll try a clean install of foobar later and let you know how I get on. It is odd how the script works fine for some artists and not others.

WSH Panel Mod script discussion/help

Reply #880
Hi to all.
How can I open DSP component from external button instead from main menu.The following comand doesn't work for DSP only for the Equalizer :


what component are you using to see a "DSP" submenu on the "view" menu? because i don't see one, even when holding down shift?

EDIT: updated my samples as well.

now playing: fixed error when using foo_skip

WSH Panel Mod script discussion/help

Reply #881
Hi to all.
How can I open DSP component from external button instead from main menu.The following comand doesn't work for DSP only for the Equalizer :


what component are you using to see a "DSP" submenu on the "view" menu? because i don't see one, even when holding down shift?



I use foo_vst_0903

WSH Panel Mod script discussion/help

Reply #882
if you look at file>preferences>keyboard shortcuts, under View>DSP, you'll see each option is

DSP #1 config
DSP #2 config
etc

if you use these in WSH panel mod, it works.

WSH Panel Mod script discussion/help

Reply #883
if you were using an older version of my scripts, did you overwrite the "marc2003" folder with files from the latest zip?


Yep, just done it again to make sure. I'll try a clean install of foobar later and let you know how I get on. It is odd how the script works fine for some artists and not others.


Clean install with latest versions of everything the script appears to be working fine in DUI and CUI.

WSH Panel Mod script discussion/help

Reply #884
if you look at file>preferences>keyboard shortcuts, under View>DSP, you'll see each option is

DSP #1 config
DSP #2 config
etc

if you use these in WSH panel mod, it works.

Thanks WORK!

WSH Panel Mod script discussion/help

Reply #885
Hi marc2003, first of all thanks for your amazing scripts. They really revolutionized my Foobar2k use. I have one question/request: I am using the thumbs2 script to show artist pictures. Would it be possible to combine both Last.fm + Custom folder at the same time? I have some unique artist pictures, but would like to see them at the same time as Last.fm pictures without the need to switch manually. Thanks a lot, Pintu.

WSH Panel Mod script discussion/help

Reply #886
For some reason marc2003 lastfm WSH script is producing some weird behavior in my config, does anyone know what's happening?




(first screenshot if before adding the script)

I noticed that if I modify the size on this line, the size of that white box gets bigger or smaller, but I just don't know which values to use:
function on_size(){
Code: [Select]
    window.MaxHeight = window.GetProperty("mini") == 0 ? 350 : 20;

WSH Panel Mod script discussion/help

Reply #887
that last.fm script is nothing to do with me. stuff like window.MaxHeight should only be used in default UI. as you've found out, it causes strange effects in columns UI. you could just try removing the line altogether. but for anymore help, go and ask who made it.

 

WSH Panel Mod script discussion/help

Reply #888
well sorry but i can't reproduce that at all. i know the width of the panel isn't the problem because the last.fm logo is drawn in the right place. very odd!

if you were using an older version of my scripts, did you overwrite the "marc2003" folder with files from the latest zip?


Same problem here..

Tried replacing all your code with a newer version.
Let me know if there's anything I can help with.

Amazing work by the way,
Thank you very much.
Roded

WSH Panel Mod script discussion/help

Reply #889
you guys have some strange setups. 


WSH Panel Mod script discussion/help

Reply #890
My 2 cents are that there's something fishy about this line..

Code: [Select]
textheight = gr.MeasureString(g_text, g_font, 6, 0, ww-16, 9999999999).Height;

Doesn't seem to return the height of the entire string.
Setting textheight to a random large number fixes the issue although adds a lot of blank space at the bottom.

So I'm not sure it's the foobar setup which is causing this..
Roded

WSH Panel Mod script discussion/help

Reply #891
well the only variable there that can differ between setups is the font. it uses whatever is set in the default UI/columns UI main font preferences???

WSH Panel Mod script discussion/help

Reply #892
well the only variable there that can differ between setups is the font. it uses whatever is set in the default UI/columns UI main font preferences???


Tried playing with the font, didn't change much.
Another wild guess I can make is that there's a mixup somehow in the interface between the PageUnit/PageScale units being read with MeasureString and those being used to draw the rect.
But that's really just an uneducated guess.

The MeasureString call returns a height of 95.765625 for a 1044 character string using the Segoe UI font (9pt) with "ww" equaling 303.
It returns the chars member to be 151 and lines to 6.

Roded

WSH Panel Mod script discussion/help

Reply #893
Hey again Marc,

Firstly big thanks for providing all the examples. They're really helpful!

I am using the code you provided for the DUI buttons script, and it works just fine. I have two buttons which when clicked, will set track skip on or off in my custom database, which in turn I have a playlist column which displays a ♪ when a track is to be played and displays nothing when it to be skipped.

Is it possible to set to set up the panel so that when either of the buttons are pressed, it will update the tracks which I have selected instead of just the one that is currently playing? As if I was doing it through the legacy commands in the context menu?

WSH Panel Mod script discussion/help

Reply #894
nevermind, I've just realized I don't need what I asked for.

WSH Panel Mod script discussion/help

Reply #895
Why this is coming out:

Scripting Engine Initialization Failed (GUID: E4CCA7C1-561B-44DA-B13C-FA76F815948D, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).

WSH Panel Mod script discussion/help

Reply #896
if only there was some way of viewing more detailed information about the error. 

WSH Panel Mod script discussion/help

Reply #897
Hey Marc! It's your favorite user back with an annoying question.

On your auto-playlist script, is there a title formatting I could use to limit a playlist in size? Ie if I wanted to generate a playlist that was no larger than 2000 songs?


WSH Panel Mod script discussion/help

Reply #899
not possible. all it does is support the standard query syntax that you use in the normal "Library>Search".

http://wiki.hydrogenaudio.org/index.php?ti...00:Query_syntax

i believe foo_random_pools is the only component that supports limiting of any kind.


Gotcha. Well, come to think of it, I can probably rig something up in random pools that will do what I want.