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 (Read 814863 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

WSH Panel Mod

Reply #850
If i use UpdateFileInfoSimple to update tags
and when the source file happens to be mp3 file from cd then there will be popup window Could not update tags (Access denied) on: ...
Question is: can we somehow suppress that window?

WSH Panel Mod

Reply #851
The pseudotransparency isn´t updated when resizing a window. Wasn´t that fixed some versions ago, or do I have to add some onWindowResize or whatever to my code?

WSH Panel Mod

Reply #852
If i use UpdateFileInfoSimple to update tags
and when the source file happens to be mp3 file from cd then there will be popup window Could not update tags (Access denied) on: ...
Question is: can we somehow suppress that window?

Nevermind.
I wrote a little function for that .
I post it here too in case anyone comes looking for the same thing.

Code: [Select]
var fso = new ActiveXObject("Scripting.FileSystemObject");
var drivePath = fb.TitleFormat ("$left(%_path%,2)")
var g_metadb;
var drive;

function DriveType() {

    var g_metadb = fb.IsPlaying ? fb.GetNowPlaying() : fb.GetFocusItem();
    var d = (drivePath.EvalWithMetadb(g_metadb) == "ht") ? 0 : fso.GetDrive(drivePath.EvalWithMetadb(g_metadb))

    switch (d.DriveType) {

    case 0:
        drive = "Unknown";
        break;
    case 1:
        drive = "Removable";
        break;
    case 2:
        drive = "Fixed";
        break;
    case 3:
        drive = "Network";
        break;
    case 4:
        drive = "CD-ROM";
        break;
    case 5:
        drive = "RAM Disk";
        break;
    default:
        drive = ""
    }

}

I call this function on function on_playback_new_track(metadb) {} and function on_item_focus_change() {}

and you can use it for something like that if(drive != "CD-ROM") g_metadb.UpdateFileInfoSimple("PLAY_COUNT","");

and no more "Could not update tags (Access denied) on: ..." popup window.
I don't know is this the easiest way but it works for me.

WSH Panel Mod

Reply #853
thanx for sharing ExtremeHunter  it's a useful function.

don't forget ";" at the end of commands

WSH Panel Mod

Reply #854
Here is the fixed and improved version to demonstrate what drive is currently playing. pastebin

WSH Panel Mod

Reply #855
@TPWang: WHen you use GetAlbumArtAsync, if there is an embedded art and a folder.jpg for example, you get the embedded art.
Is there a way to make so that the one you get is the folder.jpg?

THanks

WSH Panel Mod

Reply #856
on_item_focus_change() doesn't seem to fire when going through columns_ui filters. Fires at the first change but if you keep going through filters it doesn't. Can anyone else reproduce this?

WSH Panel Mod

Reply #857
on_item_focus_changed() reacts on changing the item focus inside a playlist. If you go through the ColumnsUI Filters the focus will be removed from the current focused item on the first change and will not be set on the subsequent changes. So, works as expected.

WSH Panel Mod

Reply #858
@T.P Wang:

I know it has been asked before, but never answered: why couldn't I change my DSP settings with fb.RunMainMenuCommand()? I have for example a DSP preset called "Front", but fb.RunMainMenuCommand("Playback/DSP Settings/Front") does not work.

WSH Panel Mod

Reply #859
@T.P WangBUG REPORT in v1.3.3

hi,

i'm always in the playlists, and i think i found another little bug :

the function on_playlists_changed[/b][/color]() is not called when we change the active playlist (using default foobar menu or other way like playlist context menu in ELP...)

so, when i change playlist in this way, my WSH playlist manager is not refreshed as well


Can you fix it please ?


Thanx by advance

WSH Panel Mod

Reply #860
Quote
var ww = window.Width;
var wh = window.Height;

function tester(x,y,w,h){
    this.x=x;this.y=y;this.w=w;this.h=h;
    }
   
tester.prototype.OnPaint = function (gr){
    fb.trace(this.w);
    gr.FillSolidRect(0, 0, this.w, this.h, 0xffff6644);}
   

var tama = new tester (0,10,ww,100);
// START
function on_size() {
    ww = window.Width;
    wh = window.Height;
}

function on_paint(gr) {
tama.OnPaint(gr);
}


the codes like this doesn't work in my fb2k~but only when i first start the fb......

seemed unable to get the window.Width
is there any solution,or error in my code?
mad messy misanthropist morbid mused

WSH Panel Mod

Reply #861
read Notes & Hints.txt file from the /doc folder of the archive :

"
6. It's better to retrieve window width and height in callback function on_size(), because their values during startup is not reliable.
"

it's what you do, you assign ww to your tester object before that the on_size function was called (on init)

you have to change your code

WSH Panel Mod

Reply #862
THX!i got it

with the help of
Quote
var tama = new tester (0,10,0,100);

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

,I solved the problem.

どうもありがとうございます!
mad messy misanthropist morbid mused


WSH Panel Mod

Reply #864
@T.P WangBUG REPORT in v1.3.3

hi,

i'm always in the playlists, and i think i found another little bug :

the function on_playlists_changed[/b][/color]() is not called when we change the active playlist (using default foobar menu or other way like playlist context menu in ELP...)

so, when i change playlist in this way, my WSH playlist manager is not refreshed as well


Can you fix it please ?


Thanx by advance

no bug, just found in the doc this callback i've missed : on_playlist_switch()



so cool!

 

WSH Panel Mod

Reply #865
@T.P Wang

Feature Request:

Rendering with GDI is very slow on my system. (ATI HD 3850) ...and consumes a lot of CPU-Power.

Direct2D has better performance and is Hardware-accelerated. (Firefox and IE change from GDI to Direct2D in next versions ( http://basschouten.com/ ))

Is it possible to use Direct2D additionally to GDI+ in WSH Panel mod?

Lit.: http://en.wikipedia.org/wiki/Direct2D

Thanks!

WSH Panel Mod

Reply #866
http://www.hydrogenaudio.org/forums/index....st&p=697356

Here is WSH Panel Mod Mod.

This add some function of aero glass.
I will use this feature.
but I don't know the detail aero function.
For example, how I get windows aero status(Aero, No Aero) in foobar2000(WSH Panel Mod)?
I understood black background make aero background.
But if not aero is enable, May be appear black background.

I want various infomation of aero function.

Thank you.

WSH Panel Mod

Reply #867
http://www.hydrogenaudio.org/forums/index....st&p=697356

Here is WSH Panel Mod Mod.

This add some function of aero glass.
I will use this feature.
but I don't know the detail aero function.
For example, how I get windows aero status(Aero, No Aero) in foobar2000(WSH Panel Mod)?
I understood black background make aero background.
But if not aero is enable, May be appear black background.

I want various infomation of aero function.

Thank you.

This Modified Version was not recommended by us~~because it is in conflict with the terms in SDK,and the being forbidden is not far away.......
But you can contact with DarkJedii,he is the author of this interesting component...
mad messy misanthropist morbid mused

WSH Panel Mod

Reply #868
http://www.hydrogenaudio.org/forums/index....st&p=697356

Here is WSH Panel Mod Mod.

This add some function of aero glass.
I will use this feature.
but I don't know the detail aero function.
For example, how I get windows aero status(Aero, No Aero) in foobar2000(WSH Panel Mod)?
I understood black background make aero background.
But if not aero is enable, May be appear black background.

I want various infomation of aero function.

Thank you.

This Modified Version was not recommended by us~~because it is in conflict with the terms in SDK,and the being forbidden is not far away.......
But you can contact with DarkJedii,he is the author of this interesting component...


Oh, I see.
Is there plan that adding aero feature to WSH Panel Mod?
I think aero future is only available on Panels UI.
If WSH Panel Mod support aero future, It is very revolutionary.
Or, Already developing now?

One more thing, I think WSH Panel Mod is wonderful, But not easy to use.
Is there plan adding useful library(e.g. easy make button function etc.) to WSH Panel Mod?
If no, I will study JScript.

WSH Panel Mod

Reply #869
http://www.hydrogenaudio.org/forums/index....st&p=697356

Here is WSH Panel Mod Mod.

This add some function of aero glass.
I will use this feature.
but I don't know the detail aero function.
For example, how I get windows aero status(Aero, No Aero) in foobar2000(WSH Panel Mod)?
I understood black background make aero background.
But if not aero is enable, May be appear black background.

I want various infomation of aero function.

Thank you.

This Modified Version was not recommended by us~~because it is in conflict with the terms in SDK,and the being forbidden is not far away.......
But you can contact with DarkJedii,he is the author of this interesting component...


Oh, I see.
Is there plan that adding aero feature to WSH Panel Mod?
I think aero future is only available on Panels UI.
If WSH Panel Mod support aero future, It is very revolutionary.
Or, Already developing now?

One more thing, I think WSH Panel Mod is wonderful, But not easy to use.
Is there plan adding useful library(e.g. easy make button function etc.) to WSH Panel Mod?
If no, I will study JScript.

impossible~you can refer the threads in some 33page(maybe 34...),uncle TP had put out his opinion....
and i think that studying JScript is better than using other guys' codes........
mad messy misanthropist morbid mused

WSH Panel Mod

Reply #870
A problem with all skin that include this plugin

At the start I've many error windows that say:

Scripting Engine Initialization Failed (GUID: BC89B381-A74B-4965-8379-6A43520F2169, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).

Scripting Engine Initialization Failed (GUID: F11C31E3-6E25-4176-B1F4-14BC6A3D54FC, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).

Scripting Engine Initialization Failed (GUID: 0605A192-2F68-4E40-AF10-38D5E184F6CF, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).

Scripting Engine Initialization Failed (GUID: B9777502-06C9-45D2-A62D-917C89F2E968, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).

Scripting Engine Initialization Failed (GUID: 30E5E5AB-C693-4364-BBC6-5F20AC7C8C8D, CODE: 0x80020101)
Check the console for more detailed information (Always caused by unexcepted script error).


And so the skin doesn't load correctly, with many error in the panel.

For every skin I read and apply the installation guide, but I can't find the solution to this problem...
where I'm in fault and how to correct?

WSH Panel Mod

Reply #871
ask the theme author. those error messages mean nothing here.

WSH Panel Mod

Reply #872
ONE Question:
why does the callback:on_playlist_switch() would not be executed when the fb.PlayingPlaylist was changed(say, when stop the track)?
mad messy misanthropist morbid mused


WSH Panel Mod

Reply #874
ONE Question:
why does the callback:on_playlist_switch() would not be executed when the fb.PlayingPlaylist was changed(say, when stop the track)?



maybe (can't check it now) because on_playlists_changed() does ?

Nope.
I've written a WSH PlaylistSwitcher(partly based on your code,esp.the refresh function),and i suddenly found out the icons i added to the playing items never refreshed when i stop the music..oh,my..

by the way,i also observerd that the RefreshBG() function used the fb.RunMainMenuCommand,and when i changed them to fb.PlayOrPause,and so on,it told me that "ERROR"~
is there any difference between these functions?
mad messy misanthropist morbid mused