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

WSH Panel Mod script discussion/help

Reply #1676
@Falstaff

In WSH VU Meter does not work Keep Aspect Ratio in CUI. You need to add transparency fields (wh -hVU)/2 to top and bottom or (ww-wVU)/2 to left and right in mono ( (ww-2wVU)/2 in stereo)


WSH Panel Mod script discussion/help

Reply #1678
to use with the last version of the component foo_vis_vumeter 2012-05-27]

Last - 2012-05-28

The site for foo_vis_vumeter is still on 2012-05-12
The last version i could find on foobar2000.ru is from 2012-05-23.
U got a better link for us onv? Thanks

http://foobar2000.org.ru/forum/viewtopic.p...1&start=135 --> http://rghost.ru/38330606


WSH Panel Mod script discussion/help

Reply #1680
so its possible to use wsh panel as host for another panels?
Falstaff can you write how to use it for other panels?

as i understand, i need to write something like this:
Code: [Select]
Panel = new ActiveXObject("esplaylist");
Panel.RegisterWindow(window.ID);
PWindow = Panel.CreateWindow(window.ID);

PWindow.SetBounds(50,50,200,200);
PWindow.Visible=true;
PWindow.Enabled=false;


but it crashes

WSH Panel Mod script discussion/help

Reply #1681
new script: musicbrainz releases


Marc, your scripts are like little christmas presents all year long! =)

One request - any chance to get the MusicBrainz release sorted chronologically?

thanks for your hard work!

.Mike


WSH Panel Mod script discussion/help

Reply #1683
so its possible to use wsh panel as host for another panels?
Falstaff can you write how to use it for other panels?


1. afaik not, should be a feature to implement in the WSH Panel Mod component, ask to T.P Wang if something is possible...
2. i've nothing to explain, what you talk about is the use of an activeX object provided by a component : VU Meter... it's not a common feature for any component !


WSH Panel Mod script discussion/help

Reply #1685
Hi all Army FB2K !!!
I need Default Volume Bar script such as this:
Please help, Thx.

P.S.Sorry for bad English :]
last.fm | bulletproof2k

WSH Panel Mod script discussion/help

Reply #1686
Falstaffits sad, but possible make same trick with other visualisation - channel spectrum panel?
T.P Wang i think i could make some interesting things, if there will be function or method to get name of main or context item - like "properties" or "open containing folder" in context. this items are known, but some plugins make dynamic items name, or related to settings of plugin. anyone agree with my point?

WSH Panel Mod script discussion/help

Reply #1687
One request - any chance to get the MusicBrainz release sorted chronologically?


on line 102, use 2 slashes to comment it out....

Code: [Select]
//temp_arr.reverse();


now it should be in ascending order.

EDIT: i missed this post.

Ho Ho Ho! Merry Christmas!


if you're happy with descending order then of course you don't have to change anything.

WSH Panel Mod script discussion/help

Reply #1688
What does "gr.SetTextRenderingHint" do?

WSH Panel Mod script discussion/help

Reply #1689
@marc

I downloaded the samples new but they aren't working with latest wsh panel mod, may be i am missing something. Requesting for the updated script if possible.



WSH Panel Mod script discussion/help

Reply #1692
@marc

I downloaded the samples new but they aren't working with latest wsh panel mod, may be i am missing something. Requesting for the updated script if possible.


i always use the latest version of WSH panel mod so it's not that.

perhaps being more descriptive with your problem might help.  if you get "aw crashed" in the panel, then make sure you post the full message from the foobar console found on the view menu. if the panel appears to load ok but crashes if you do something, then post the steps to re-produce.


WSH Panel Mod script discussion/help

Reply #1694
it affects the way text is displayed with DrawString() api (smoothness, ... etc), check the doc (interface.txt) bundled with the component

D'oh. The one place I didn't look. Thanks.

WSH Panel Mod script discussion/help

Reply #1695
Can "gr.SetTextRenderingHint(5);" be set globally at the beginning of the script instead of in "function on_paint(gr)" ?

Is there anything wrong with doing that?

WSH Panel Mod script discussion/help

Reply #1696
Can "gr.SetTextRenderingHint(5);" be set globally at the beginning of the script instead of in "function on_paint(gr)" ?

Is there anything wrong with doing that?


No it can't (and therefore what's wrong with it is that it won't work unfortunately).

The reason it won't work is that you need access to the gr object in order to call the function gr.SetTextRenderingHint(...). This access is granted by gr being provided to the on_paint function as a parameter.

You could, however, set a global variable to the value you want and then refer to this in the on_paint function, but I'm not sure if that will be of any use to you.

WSH Panel Mod script discussion/help

Reply #1697
First off, if this request is in the wrong place please forgive my ignorance.
Might be best to quickly read an old post of mine dated Jan 21 2012, 13:44 to best describe my issue.
http://www.hydrogenaudio.org/forums/index....st&p=783162

Can anyone help? Please?

Thanks in advance.

Brett.

WSH Panel Mod script discussion/help

Reply #1698
i can't be bothered to make something nice

Code: [Select]
var ww = 0;
var wh = 0;

function RGB(r, g, b) {
return (0xff000000 | (r << 16) | (g << 8) | (b));
}

function on_size() {
ww = window.Width;
wh = window.Height;
}

function on_paint(gr) {
gr.FillSolidRect(0, 0, ww, wh, fb.StopAfterCurrent ? RGB(255,0,0) : RGB(0,255,0));
}

function on_playlist_stop_after_current_changed() {
window.Repaint();
}

function on_mouse_lbtn_up() {
fb.StopAfterCurrent = !fb.StopAfterCurrent;
}

green panel: stop after current disabled
red panel: stop after current enabled
click the panel to toggle the state and it will also update if you use the playback menu.

WSH Panel Mod script discussion/help

Reply #1699
I made a small piece of code, use it as WSH panel on its own or place it into your other script. Clicking on the panel will toggle SACT mode and inform you what is going on.

Code: [Select]
var font_1 = gdi.Font("Tahoma",10,1);
var color_1 = RGB(235,235,235);
var DT_LEFT = 0x00000000;

function on_paint(gr){
    var ww,wh;
    ww = window.Width;
    wh = window.Height;
    gr.FillSolidRect(0, 0, ww, wh, RGB(0,0,0));
    
    if(fb.IsPlaying){
        text = (fb.IsPlaying && fb.StopAfterCurrent) ? "SACT" : "NO SACT";
        gr.GdiDrawText(text, font_1, color_1, 0, 0, 60, 10, DT_LEFT);
    }
}

function RGB(r, g, b){
return (0xff000000 | (r << 16) | (g << 8) | (b));
}

function on_mouse_lbtn_down(x, y, mask){
    if(!fb.IsPlaying) return;
    fb.RunMainMenuCommand("Playback/Stop After Current");
}

function on_playlist_stop_after_current_changed(state){
        window.Repaint();
}