Skip to main content

Topic: WSH Panel Mod script discussion/help (Read 843653 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • pIv
  • [*][*][*][*]
WSH Panel Mod script discussion/help
Reply #1675
@pIv

sorry, my bad... v1.4.3 uploaded that fix this issue.

http://pastebin.com/u/Br3tt


Thank you very much for the quick correction of this bug.

  • onv
  • [*][*]
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)
  • Last Edit: 29 May, 2012, 05:10:12 AM by onv

  • Mod-Ular
  • [*]
WSH Panel Mod script discussion/help
Reply #1677
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

  • onv
  • [*][*]
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
  • Last Edit: 29 May, 2012, 05:37:59 AM by onv

  • kareha
  • [*][*]
WSH Panel Mod script discussion/help
Reply #1679
to use with the last version of the component foo_vis_vumeter 2012-05-27]

Last - 2012-05-28


Could I get a link to the latest version of the VU Meter component, I can only find the one dated 2012-05-12.

  • romka18
  • [*]
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

  • mjm716
  • [*][*][*]
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
  • Last Edit: 29 May, 2012, 01:09:35 PM by mjm716

WSH Panel Mod script discussion/help
Reply #1682
german support forum: www.foobar-users.de / user: qwert73

  • Falstaff
  • [*][*][*][*][*]
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 !

  • mjm716
  • [*][*][*]
WSH Panel Mod script discussion/help
Reply #1684

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 :]

  • romka18
  • [*]
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?

  • marc2003
  • [*][*][*][*][*]
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.
  • Last Edit: 30 May, 2012, 04:30:34 AM by marc2003

  • Mr.Duck
  • [*][*]
WSH Panel Mod script discussion/help
Reply #1688
What does "gr.SetTextRenderingHint" do?

  • prateek88
  • [*][*][*]
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.

  • Falstaff
  • [*][*][*][*][*]
WSH Panel Mod script discussion/help
Reply #1690
What does "gr.SetTextRenderingHint" do?


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

  • onv
  • [*][*]
WSH Panel Mod script discussion/help
Reply #1691
Screensaver "Flying VU",  the next update from DRON

http://www.youtube.com/watch?v=ZcnQBA1DrfU...eature=youtu.be


  • marc2003
  • [*][*][*][*][*]
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 #1693
 

You may grab it here:

WSH digital Vu meter

http://pastebin.com/H26MujCP
  • Last Edit: 31 May, 2012, 07:04:44 AM by ExtremeHunter

  • Mr.Duck
  • [*][*]
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.

  • Mr.Duck
  • [*][*]
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?
  • Last Edit: 31 May, 2012, 09:13:02 PM by Mr.Duck

  • rawny
  • [*]
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.

  • Brett289
  • [*]
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.
  • Last Edit: 01 June, 2012, 10:57:15 AM by Frank Bicking

  • marc2003
  • [*][*][*][*][*]
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();
}