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

WSH Panel Mod

Reply #1150
i just want to get 'select all' items working, and then to use what already exists : fb.GetSelections(), just for a feature i need. Now i think T.P reasons are justified about a fb.GetPlaylistItems() function, just it's just my opinion

WSH Panel Mod

Reply #1151
Hi, there's something strange with my configuration of this WSH panel mod, since it shows album art embedded in MP3 ID tags, BUT only if the MP3 are inside a ZIP or RAR, otherwise it doesn't show the embedded art at all --and I have tried this with the exact same files. Very strange.
Can someone help me with an explanation for this please?

This is the code of WSH panel mod  (taken from a DarkOne theme):

Code: [Select]
// ===== Cover Panel ===============================================
// ===== Code by super-gau, T.P. Wang and tedGo

AlbumArtId = {
front: 0,
back: 1,
disc: 2,
icon: 3,
artist: 4
};

var g_radio_tfo = fb.TitleFormat("$if2(%darkone_radio_pic%,%foobar_path%DarkOne\Images\Radio.png)");
var g_cd_tfo = fb.TitleFormat("$if2(%darkone_cd_pic%,%foobar_path%DarkOne\Images\AudioCD.png)");
var g_rawimg = null;
var g_stop_img = gdi.Image(fb.FoobarPath + "DarkOne\\Images\\DarkOne.png");
var g_nocover_img = gdi.Image(fb.FoobarPath + "DarkOne\\Images\\NoCover.png");
var g_state = AlbumArtId.front;
var ww, wh;

getRightImage(fb.GetNowPlaying(), false);

function getRightImage(metadb, switchstate) {
if (metadb) {
var bmp = null;

if (metadb.Length < 0) {
bmp = gdi.Image(g_radio_tfo.Eval());
} else if (metadb.RawPath.indexOf("cdda://" ) == 0) {
bmp = gdi.Image(g_cd_tfo.Eval());
} else {
var old_state = g_state;

do {
if (switchstate)
switchState();

bmp = utils.GetAlbumArt(metadb.RawPath, g_state, false);
} while (switchstate && (old_state != g_state) && !bmp);
}
}

if (bmp) {
g_rawimg = bmp.CreateRawBitmap();
} else if (!switchstate) {
g_rawimg = g_nocover_img.CreateRawBitmap();
}

CollectGarbage();

return g_rawimg ? true : false;
}

function switchState() {
if (g_state == AlbumArtId.artist)
g_state = AlbumArtId.front;
else
g_state++;
}

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) {
var back_col = fb.IsPlaying ? RGB(31, 50, 63) : RGB (19, 30, 38);
var src_w = fb.IsPlaying ? g_rawimg.Width : g_stop_img.Width;
var src_h = fb.IsPlaying ? g_rawimg.Height : g_stop_img.Height;
var img_scale = Math.min(ww/src_w, wh/src_h);
var img_w = src_w*img_scale;
var img_h = src_h*img_scale;
var img_x = (ww - img_w)/2;
var img_y = (wh - img_h)/2;

gr.FillSolidRect(0, 0, ww, wh, back_col);

if (fb.IsPlaying)
g_rawimg && gr.GdiDrawBitmap(g_rawimg, img_x, img_y, img_w, img_h, 0, 0, g_rawimg.Width, g_rawimg.Height);
else
gr.DrawImage(g_stop_img, img_x, img_y, img_w, img_h, 0, 0, g_stop_img.Width, g_stop_img.Height);
}

function on_mouse_lbtn_down(x, y, mask) {
if (!fb.IsPlaying) return;

getRightImage(fb.GetNowPlaying(), true);
window.Repaint();
}

function on_playback_new_track(metadb) {
if  (getRightImage(metadb, false))
window.Repaint();
}

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

I'm using foobar 0.9.5.2  with  WSH panel mod v 1.1.7.  I know there are more recent versions of foobar, but those simply ceased all support to panelsUI, and I have several awsome themes from this component that I *really* don't want to toss away. And recent versions of WSH panel don't work with my foobar.

If anyone could help me making the album art to show, independently of being inside a archive or not, and with the software versions that I have (after all they worked in the past, so they should work now), I would greatly appreciate it.

Speaking of archives, I would very much like to know if there's a way of reading non-embedded album art that is inside of ZIP/RAR archives together with audio files, e.g. "track01.mp3, track02.mp3, pic45345.jpg".  Like what the internal foobar albumart reader does, but without the JPEGs having to be named as 'cover', 'folder' or whatever it obliges

WSH Panel Mod

Reply #1152
EDIT: Ok, nevermind the embedded art only displaying with mp3 inside archives (where is the EDIT TOPIC button?).
I don't know what I did, but whatever it was, it fixed it.

Still, I would like very much to read art inside archives without the JPGs having to be named 'cover', 'folder' or 'front'. The funny thing is, if I'm listening to an album with a normal directory structure (as in, no archives), the JPG inside the folder can have any name and be displayed, so why not the same inside archives? Any help please? 

WSH Panel Mod

Reply #1153
Ok, from what I found, I need the Panel Stack Splitter because is the only one who accepts "$imageabs(" which in turn is the only function able to read images from archives by using the 'archive' switch. But I need it to read *any* image filename (or else I would use the internal artwork reader of foobar that reads 2 or 3 image filenames), that means I need wildcards (*.), available with the 'wc' switch of $imageabs.  The problem is that I can't use both simultaneously. Are they mutually exclusive?
I used them like this: $imageabs(0,0,%_width%,%_height%,$replace(%path%,%filename_ext%,*.jpg),wc archive)
I've tried putting a comma "," between the wc and the archive, trading places between one another, but nothing. Come on guys, you must know something
Help me make the ultimate cover reader

WSH Panel Mod

Reply #1154
I'm trying to add a progress bar to the currently playing track (actually inside the track if you get me), i've been searchin the forum for a while trying to find a script to do it but cat find anything...can anyone help?
cheers


WSH Panel Mod

Reply #1156
@T.P Wang, feature request, either of:
. Can you expose the proxy setting string inside foobar networking preferences as a IFbUtils properties or anywhere else that you feel appropriate? With this I don't have to ask my panel user to enter proxy setting manually anymore.
. Actually the best way is exposing foobar HTTP services so I and others can use them with GET and POST requests instead of relying on ActiveX control.

If you can implement either of these it will be awesome (I prefer the latter, tbh). Reason for asking was posted on this post and the next.

BTW, I don't know what you did but crashing with pure virtual function call when exiting foobar during an ActiveXObject procedure doesn't happen anymore. Thanks.

WSH Panel Mod

Reply #1157
Question:

i have a file path (ex: C:\music\A\ACDC\ACDC - Thunderstruck.mp3) and i'd like to play the file in my active foobar2000 session ... how to do ??

- i've tried to use the shell.Run command, but it make foobar crashing (in the dump, WSH panel mod main app loop crash ) , example ==> WshShell.Run(fb.FoobarPath+"foobar2000.exe /add "+this.path);

- the, i've tried to create an autoplaylist with a query that match the path, like this ==> fb.CreateAutoPlaylist(fb.PlaylistCount, "WSH Explorer", "%path% IS "+this.path);
then i use a fb.Next() to play the track from the new active playlist created. But this ONLY works for track inside the Library, NOT with other files

Has someone an idea that can do the job? or maybe a new method is required like fb.AddPathToPlaylist(idx, path) or something like this ?

my goal is to use a tree file explorer just coded with WSH panel Mod, bu if i can't play tracks from the tree, it's useless

http://br3tt.deviantart.com/art/a-foobar20...lorer-195002812

Thanx by advance for any advise or any help (i keep in mind that fb.AddPathToPlaylist(idx, path) and fb.AddPathToPlaylistAndPlay(idx, path) would be an awesome new feature T.P ? )

WSH Panel Mod

Reply #1158
using WshShell.Run with /add works fine for me. maybe fb.trace your command to see where it's going wrong??

WSH Panel Mod

Reply #1159
using WshShell.Run with /add works fine for me. maybe fb.trace your command to see where it's going wrong??

already done, here are the syntax i used and the dump :

fb.trace(fb.FoobarPath+"foobar2000.exe /add "+this.path);
WshShell.Run(fb.FoobarPath+"foobar2000.exe /add "+this.path);


trace result => J:\foobar2000 spotifoo\foobar2000.exe /add Z:\MP3\0\+44\2006 - When Your Heart Stops Beating\01 - +44 - Lycanthrope.mp3

Code: [Select]
Illegal operation:
Code: C0000005h, flags: 00000000h, address: 7009D2EEh
Access violation, operation: read, address: 00000000h

Call path:
entry=>app_mainloop

Code bytes (7009D2EEh):
7009D2AEh:  5E 8B C3 5B 5D C3 CC CC CC CC CC CC CC CC CC CC
7009D2BEh:  CC CC 55 8B EC 83 EC 08 53 56 33 F6 BB 01 00 00
7009D2CEh:  00 89 5D F8 39 75 0C 0F 86 96 00 00 00 57 8B 7D
7009D2DEh:  08 90 8B 45 0C 2B C6 0F 84 85 00 00 00 83 F8 01
7009D2EEh:  0F B7 04 77 75 07 B9 01 00 00 00 EB 53 33 D2 85
7009D2FEh:  C0 74 47 8B C8 81 E1 00 FC 00 00 BA 01 00 00 00
7009D30Eh:  81 F9 00 D8 00 00 75 32 0F B7 4C 77 02 8B D9 81
7009D31Eh:  E3 00 FC 00 00 81 FB 00 DC 00 00 8B 5D F8 75 1A

Stack (0019D4D4h):
0019D4B4h:  00000000 FFFFFD34 000002E4 FFFFFD34
0019D4C4h:  000002CC 00000019 00000000 0019D4E8
0019D4D4h:  0019D50C 00000000 00000000 00000001
0019D4E4h:  0019D50C 0019D61C 7006BD15 00000000
0019D4F4h:  FFFFFFFF 86664004 006A927C 006A8FE8
0019D504h:  006A0000 00140036 00000000 00000000
0019D514h:  00000000 00000000 0000001B 000B0037
0019D524h:  02A58330 00B71EB0 00000094 0019D7E4
0019D534h:  700F7964 03421AB8 0000002E 00000040
0019D544h:  0000002D 00000000 00BBEC50 00000014
0019D554h:  00B60178 00BCB758 00B606B0 00000000
0019D564h:  00000000 00000000 00000000 00000000
0019D574h:  00000000 00000000 80070002 00000000
0019D584h:  86664004 00000040 7732DEC6 00B71ED4
0019D594h:  00000000 00B71EB0 0019D5D0 746F651D
0019D5A4h:  00B71ED4 9EF3A4D3 00B71ED4 00B71EB0
0019D5B4h:  00000000 0019D5A8 00B71ED4 00B71EEC
0019D5C4h:  00B71EEC 00B71ED4 00000001 00BC0888
0019D5D4h:  0019D608 746F651D FFFFFFFF 00000002
0019D5E4h:  00000000 00000048 746E5ACB 0019D610

Registers:
EAX: FFFFFFFF, EBX: 00000001, ECX: 00000019, EDX: 00000018
ESI: 00000000, EDI: 00000000, EBP: 0019D4E8, ESP: 0019D4D4

Crash location:
Module: foo_uie_wsh_panel_mod
Offset: 3D2EEh

Loaded modules:
foobar2000                      loaded at 01130000h - 01319000h
ntdll                            loaded at 77300000h - 77480000h
kernel32                        loaded at 76930000h - 76A30000h
KERNELBASE                      loaded at 76C30000h - 76C76000h
COMCTL32                        loaded at 72C00000h - 72D9E000h
msvcrt                          loaded at 75090000h - 7513C000h
GDI32                            loaded at 76E70000h - 76F00000h
USER32                          loaded at 76400000h - 76500000h
ADVAPI32                        loaded at 76890000h - 76930000h
sechost                          loaded at 762D0000h - 762E9000h
RPCRT4                          loaded at 76010000h - 76100000h
SspiCli                          loaded at 74E70000h - 74ED0000h
CRYPTBASE                        loaded at 74E60000h - 74E6C000h
LPK                              loaded at 74F60000h - 74F6A000h
USP10                            loaded at 76230000h - 762CD000h
SHLWAPI                          loaded at 76D10000h - 76D67000h
DSOUND                          loaded at 71140000h - 711B2000h
ole32                            loaded at 75DC0000h - 75F1C000h
WINMM                            loaded at 74310000h - 74342000h
POWRPROF                        loaded at 73B10000h - 73B35000h
SETUPAPI                        loaded at 765A0000h - 7673D000h
CFGMGR32                        loaded at 75D90000h - 75DB7000h
OLEAUT32                        loaded at 76C80000h - 76D0F000h
DEVOBJ                          loaded at 76550000h - 76562000h
UxTheme                          loaded at 732E0000h - 73360000h
SHELL32                          loaded at 75140000h - 75D89000h
zlib1                            loaded at 5A4C0000h - 5A4D4000h
shared                          loaded at 74540000h - 7456B000h
imagehlp                        loaded at 75FA0000h - 75FCA000h
dbghelp                          loaded at 73EC0000h - 73FAB000h
COMDLG32                        loaded at 762F0000h - 7636B000h
Secur32                          loaded at 74530000h - 74538000h
CRYPT32                          loaded at 74F70000h - 7508C000h
MSASN1                          loaded at 76740000h - 7674C000h
gdiplus                          loaded at 70F00000h - 71090000h
IMM32                            loaded at 75F30000h - 75F90000h
MSCTF                            loaded at 76160000h - 7622C000h
CLBCatQ                          loaded at 76370000h - 763F3000h
MMDevApi                        loaded at 71100000h - 71139000h
PROPSYS                          loaded at 72100000h - 721F5000h
dwmapi                          loaded at 732C0000h - 732D3000h
foo_unpack                      loaded at 74500000h - 7452E000h
foo_uie_vis_channel_spectrum    loaded at 10000000h - 1003D000h
MSIMG32                          loaded at 72BF0000h - 72BF5000h
foo_albumlist                    loaded at 744A0000h - 744FD000h
foo_converter                    loaded at 70290000h - 7030B000h
foo_masstag                      loaded at 01030000h - 01084000h
foo_input_std                    loaded at 70130000h - 70285000h
foo_uie_wsh_panel_mod            loaded at 70060000h - 70122000h
foo_ui_columns                  loaded at 03510000h - 0369C000h
foo_runcmd                      loaded at 70020000h - 70053000h
foo_ui_std                      loaded at 6E730000h - 6E848000h
foo_utils                        loaded at 6FFD0000h - 70014000h
foo_cdda                        loaded at 6E6E0000h - 6E72E000h
foo_uie_elplaylist              loaded at 6E660000h - 6E6D3000h
foo_fileops                      loaded at 6E610000h - 6E657000h
foo_uie_lyrics2                  loaded at 03CE0000h - 03DCE000h
WININET                          loaded at 76D70000h - 76E64000h
Normaliz                        loaded at 772D0000h - 772D3000h
urlmon                          loaded at 76750000h - 76885000h
iertutil                        loaded at 76A30000h - 76C2A000h
foo_uie_esplaylist              loaded at 6E5A0000h - 6E607000h
foo_freedb2                      loaded at 6E550000h - 6E591000h
foo_uie_albumlist                loaded at 029F0000h - 02A33000h
foo_uie_panel_splitter          loaded at 02BD0000h - 02C29000h
foo_lyricsgrabber2              loaded at 6E490000h - 6E54C000h
WLDAP32                          loaded at 76500000h - 76545000h
python25                        loaded at 1E000000h - 1E208000h
MSVCR71                          loaded at 7C340000h - 7C396000h
WS2_32                          loaded at 75FD0000h - 76005000h
NSI                              loaded at 75F90000h - 75F96000h
foo_uie_biography                loaded at 6E430000h - 6E488000h
foo_dsp_std                      loaded at 6E3E0000h - 6E428000h
foo_jesus                        loaded at 74480000h - 7449A000h
foo_covers2                      loaded at 6E3B0000h - 6E3D7000h
foo_uie_dragpanel                loaded at 02A60000h - 02A85000h
foo_rgscan                      loaded at 6E360000h - 6E3AD000h
WindowsCodecs                    loaded at 70BD0000h - 70CCB000h
apphelp                          loaded at 73530000h - 7357B000h
EhStorShell                      loaded at 73DD0000h - 73E01000h
GR469A~1                        loaded at 661C0000h - 663DD000h
GrooveUtil                      loaded at 68EF0000h - 68FE1000h
MSVCR80                          loaded at 73D30000h - 73DCB000h
GrooveNew                        loaded at 68FF0000h - 68FF7000h
VERSION                          loaded at 738B0000h - 738B9000h
ATL80                            loaded at 7C630000h - 7C64B000h
CRYPTSP                          loaded at 737F0000h - 73806000h
rsaenh                          loaded at 737B0000h - 737EB000h
ntshrui                          loaded at 73C50000h - 73CBF000h
srvcli                          loaded at 73590000h - 735A9000h
cscapi                          loaded at 73EB0000h - 73EBB000h
slc                              loaded at 73EA0000h - 73EAA000h
SXS                              loaded at 6E300000h - 6E35F000h
jscript                          loaded at 746D0000h - 74782000h
RpcRtRemote                      loaded at 72200000h - 7220E000h
wshom                            loaded at 6E2D0000h - 6E2F1000h
MPR                              loaded at 72660000h - 72672000h
ScrRun                          loaded at 6E2A0000h - 6E2CA000h
_socket                          loaded at 030F0000h - 030FD000h
explorerframe                    loaded at 70A60000h - 70BCF000h
DUser                            loaded at 73B40000h - 73B6F000h
DUI70                            loaded at 711C0000h - 71272000h

Stack dump analysis:
Address: 7006BD15h (foo_uie_wsh_panel_mod+BD15h)
Address: 700F7964h (foo_uie_wsh_panel_mod+97964h), symbol: "foobar2000_get_interface" (+59254h)
Address: 7732DEC6h (ntdll+2DEC6h), symbol: "RtlAllocateHeap" (+0h)
Address: 746F651Dh (jscript+2651Dh), symbol: "DllGetClassObject" (+15379h)
Address: 746F651Dh (jscript+2651Dh), symbol: "DllGetClassObject" (+15379h)
Address: 746E5ACBh (jscript+15ACBh), symbol: "DllGetClassObject" (+4927h)
Address: 75099D45h (msvcrt+9D45h), symbol: "malloc" (+57h)
Address: 700ED7A5h (foo_uie_wsh_panel_mod+8D7A5h), symbol: "foobar2000_get_interface" (+4F095h)
Address: 746E0B7Bh (jscript+10B7Bh)
Address: 7006A941h (foo_uie_wsh_panel_mod+A941h)
Address: 746F4D79h (jscript+24D79h), symbol: "DllGetClassObject" (+13BD5h)
Address: 746F4F9Ch (jscript+24F9Ch), symbol: "DllGetClassObject" (+13DF8h)
Address: 746F4F30h (jscript+24F30h), symbol: "DllGetClassObject" (+13D8Ch)
Address: 76236104h (USP10+6104h)
Address: 762753DBh (USP10+453DBh), symbol: "ScriptPositionSingleGlyph" (+15A4Bh)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 746F651Dh (jscript+2651Dh), symbol: "DllGetClassObject" (+15379h)
Address: 75099894h (msvcrt+9894h), symbol: "free" (+0h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 7471DBBAh (jscript+4DBBAh), symbol: "DllCanUnloadNow" (+25BA0h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E4D73h (jscript+14D73h), symbol: "DllGetClassObject" (+3BCFh)
Address: 746E6302h (jscript+16302h), symbol: "DllGetClassObject" (+515Eh)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746DB6A7h (jscript+B6A7h)
Address: 746DB6CCh (jscript+B6CCh)
Address: 746E5870h (jscript+15870h), symbol: "DllGetClassObject" (+46CCh)
Address: 746EDCFBh (jscript+1DCFBh), symbol: "DllGetClassObject" (+CB57h)
Address: 746E4D76h (jscript+14D76h), symbol: "DllGetClassObject" (+3BD2h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E4F84h (jscript+14F84h), symbol: "DllGetClassObject" (+3DE0h)
Address: 746E5268h (jscript+15268h), symbol: "DllGetClassObject" (+40C4h)
Address: 746EF2FBh (jscript+1F2FBh), symbol: "DllGetClassObject" (+E157h)
Address: 746EDCFBh (jscript+1DCFBh), symbol: "DllGetClassObject" (+CB57h)
Address: 746E5268h (jscript+15268h), symbol: "DllGetClassObject" (+40C4h)
Address: 746ED9A8h (jscript+1D9A8h), symbol: "DllGetClassObject" (+C804h)
Address: 746E0001h (jscript+10001h)
Address: 746EDA4Fh (jscript+1DA4Fh), symbol: "DllGetClassObject" (+C8ABh)
Address: 746EE4C7h (jscript+1E4C7h), symbol: "DllGetClassObject" (+D323h)
Address: 7471DBBAh (jscript+4DBBAh), symbol: "DllCanUnloadNow" (+25BA0h)
Address: 746E5D8Bh (jscript+15D8Bh), symbol: "DllGetClassObject" (+4BE7h)
Address: 746E0001h (jscript+10001h)
Address: 746EF29Eh (jscript+1F29Eh), symbol: "DllGetClassObject" (+E0FAh)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746E758Ch (jscript+1758Ch), symbol: "DllGetClassObject" (+63E8h)
Address: 746EEF36h (jscript+1EF36h), symbol: "DllGetClassObject" (+DD92h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E4F84h (jscript+14F84h), symbol: "DllGetClassObject" (+3DE0h)
Address: 746EE4C7h (jscript+1E4C7h), symbol: "DllGetClassObject" (+D323h)
Address: 7471DBBAh (jscript+4DBBAh), symbol: "DllCanUnloadNow" (+25BA0h)
Address: 746E5D8Bh (jscript+15D8Bh), symbol: "DllGetClassObject" (+4BE7h)
Address: 746E0001h (jscript+10001h)
Address: 746EF29Eh (jscript+1F29Eh), symbol: "DllGetClassObject" (+E0FAh)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746E758Ch (jscript+1758Ch), symbol: "DllGetClassObject" (+63E8h)
Address: 746EEF36h (jscript+1EF36h), symbol: "DllGetClassObject" (+DD92h)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E4F84h (jscript+14F84h), symbol: "DllGetClassObject" (+3DE0h)
Address: 746EE4C7h (jscript+1E4C7h), symbol: "DllGetClassObject" (+D323h)
Address: 746E5D8Bh (jscript+15D8Bh), symbol: "DllGetClassObject" (+4BE7h)
Address: 746E0001h (jscript+10001h)
Address: 746E0001h (jscript+10001h)
Address: 746EF29Eh (jscript+1F29Eh), symbol: "DllGetClassObject" (+E0FAh)
Address: 74766BA4h (jscript+96BA4h), symbol: "DllRegisterServer" (+19ACBh)
Address: 746E5D7Dh (jscript+15D7Dh), symbol: "DllGetClassObject" (+4BD9h)
Address: 746E5CDBh (jscript+15CDBh), symbol: "DllGetClassObject" (+4B37h)
Address: 746E758Ch (jscript+1758Ch), symbol: "DllGetClassObject" (+63E8h)
Address: 746EEF36h (jscript+1EF36h), symbol: "DllGetClassObject" (+DD92h)

Environment:
App: foobar2000 v1.1.1
OS: Windows 6.1.7600 x64
CPU: Intel® Core™2 Duo CPU    E6850  @ 3.00GHz, features: MMX SSE SSE2 SSE3
Audio: Haut-parleurs (Périphérique High Definition Audio); Audio numérique (SPDIF) (Périphérique High Definition Audio)
UI: Columns UI 0.3.8.6

Components:
Core (2010-11-05 10:46:52 UTC)
    foobar2000 core 1.1.1
foo_albumlist.dll (2010-11-05 10:45:06 UTC)
    Album List 4.5
foo_cdda.dll (2010-11-05 10:44:56 UTC)
    CD Audio Decoder 3.0
foo_converter.dll (2010-11-05 10:44:36 UTC)
    Converter 1.5
foo_covers2.dll (2010-10-17 09:13:32 UTC)
    Locate Covers 0.06
foo_dsp_std.dll (2010-11-05 10:45:06 UTC)
    Standard DSP Array 1.0
foo_fileops.dll (2010-11-05 10:43:42 UTC)
    File Operations 2.1.3
foo_freedb2.dll (2010-11-05 10:43:42 UTC)
    freedb Tagger 0.6.2
foo_input_std.dll (2010-11-05 10:50:28 UTC)
    Standard Input Array 1.0
foo_jesus.dll (2010-10-30 21:46:04 UTC)
    Autosave & Autobackup 10
foo_lyricsgrabber2.dll (2010-11-13 20:19:52 UTC)
    Lyrics Grabber 2 0.5.5.2 beta
foo_masstag.dll (2010-11-10 17:39:24 UTC)
    Masstagger 1.8.4
foo_rgscan.dll (2010-11-05 10:44:34 UTC)
    ReplayGain Scanner 2.0.9
foo_runcmd.dll (2011-01-27 20:21:56 UTC)
    Run Command 1.1
foo_ui_columns.dll (2010-10-17 09:11:34 UTC)
    Columns UI 0.3.8.6
foo_ui_std.dll (2010-11-05 10:45:14 UTC)
    Default User Interface 0.9.5
foo_uie_albumlist.dll (2010-11-27 21:02:50 UTC)
    Album list panel 0.3.5
foo_uie_biography.dll (2010-10-17 09:09:36 UTC)
    Biography View 0.4.2.3
foo_uie_dragpanel.dll (2010-11-12 14:54:40 UTC)
    Drag Panel 0.0.8
foo_uie_elplaylist.dll (2010-10-26 20:38:46 UTC)
    ELPlaylist 0.6.9.1.1(beta)
foo_uie_esplaylist.dll (2010-11-28 19:45:02 UTC)
    EsPlaylist 0.1.3.4
foo_uie_lyrics2.dll (2010-10-30 11:29:08 UTC)
    Lyric Show Panel 2 0.4.6.15
foo_uie_panel_splitter.dll (2010-10-17 09:12:44 UTC)
    Panel Stack Splitter 0.3.8.2(alpha)
foo_uie_vis_channel_spectrum.dll (2010-10-17 09:12:50 UTC)
    Channel Spectrum panel 0.17.2
foo_uie_wsh_panel_mod.dll (2010-12-27 08:57:26 UTC)
    WSH Panel Mod 1.4.1
foo_unpack.dll (2010-11-05 10:43:56 UTC)
    ZIP/GZIP/RAR Reader 1.6
foo_utils.dll (2010-10-29 06:24:46 UTC)
    Playlist Tools 0.6.2 beta 6

Recent events:
Watching: J:\MP3
WSH Panel Mod (Tree Explorer v1.0 by Br3tt): initialized in 27 ms
Autoplaylists initialized in: 0:00.008719
"&&0&&Library" : 0:00.000163
"Search jpop" : 0:00.007998
"Search yodelice" : 0:00.000488
"rating > 2" : 0:00.000041
Startup time : 0:01.580589
J:\foobar2000 spotifoo\foobar2000.exe /add Z:\MP3\0\+44\2006 - When Your Heart Stops Beating\01 - +44 - Lycanthrope.mp3


WSH Panel Mod

Reply #1160
Falstaff
Maybe try to rename Foobar2000 folder to standart ("foobar2000")? I know this is not important but who knows.

And: I think you need to use quotes with all the paths, just like this:
Code: [Select]
WshShell.Run('"'+fb.FoobarPath+'foobar2000.exe" /add "'+this.path+'"');

WSH Panel Mod

Reply #1161
Falstaff
Maybe try to rename Foobar2000 folder to standart ("foobar2000")? I know this is not important but who knows.

And: I think you need to use quotes with all the paths, just like this:
Code: [Select]
WshShell.Run('"'+fb.FoobarPath+'foobar2000.exe" /add "'+this.path+'"');


BINGO!!! (weird behavior )

now no crash, but syntax error in my command, i think that some quotes are missing around the path, bu i can't find yet how to fix it....

Thanx Zin-Uru

WSH Panel Mod

Reply #1162
try...

Code: [Select]
WshShell.Run(fb.FoobarPath + "foobar2000.exe /add " + "\"" + this.path + "\"");



WSH Panel Mod

Reply #1163
Falstaff
No problem!

My code (see above) with quotes should work fine.
fb.trace() returns:
Quote
"D:\Foobar2000\foobar2000.exe" /add "D:\Music\Test test.flac"


WSH Panel Mod

Reply #1165
[a href="http://img207.imageshack.us/i/treeinspotifoo.png/" target="_blank"] I can send you the script if you want to give it a try and so to see what's are the needs (PM me)


WSH Panel Mod

Reply #1166
Falstaff
It looks great. Waiting for release!

Also I think it's possible to add/send folders through WSH file explorer with foobar2000.exe command line: elements of the folder have to be processed one by one in the cycle.
If you add this feature too it would be fantastic.

Finally, I don't know if it's possible to use drag & drop from WSH FE (I haven't worked with this WSH Panel Mod feature), but would be useful too.

WSH Panel Mod

Reply #1167
Falstaff
...
Also I think it's possible to add/send folders through WSH file explorer with foobar2000.exe command line: elements of the folder have to be processed one by one in the cycle.
..


the problem with command line is that's not very efficient, there a lag on each use, and cycling a folder could take very very very long time

WSH Panel Mod

Reply #1168
Yeah it could for sure. But you can add option to turn off this function. In my opinion we need said feature cause adding only one track per click is rather inconvenient. It's better to wait a bit while tracks adding.

And maybe try command line features:
Quote
/immediate - bypasses the "please wait" dialog when adding files

Quote
/add <list-of-files>

WSH Panel Mod

Reply #1169
/immediate, yep, it's better with it .. willk give it a try (loop), but unconvinced yet...

WSH Panel Mod

Reply #1170
For information, command line doesn't accept long filenames for the foobar2000 folder (make foobar crashing!), but path passed in argument can be long name format (weird)

> to make it works regardless of the foobar2000 installation path, we have to use the ShortPath of fb.FoobarPath, for example :

var FoobarShortPath= fso.GetFolder(fb.FoobarPath).ShortPath;
WshShell.Run(FoobarShortPath+"\\foobar2000.exe /immediate "+"\""+this.path+"\"");

WSH Panel Mod

Reply #1171
Good to know, thanks.

 

WSH Panel Mod

Reply #1172
I'm trying to use Up and Down arrow keys with on_key_up(vkey) callback but it only registers my actions once every few key depressions. Is it a bug or did I do something wrong? The code is simply:
Code: [Select]
function on_key_up(vkey) {
    if (vkey == 0x26) {
        //Do something
    }
}

WSH Panel Mod

Reply #1173
I'm trying to use Up and Down arrow keys with on_key_up(vkey) callback but it only registers my actions once every few key depressions. Is it a bug or did I do something wrong? The code is simply:
Code: [Select]
function on_key_up(vkey) {
    if (vkey == 0x26) {
        //Do something
    }
}


Works fine on CUI, on DUI the WSH panel loses its focus when you press arrow keys, thats why it want work properly, i think. 

WSH Panel Mod

Reply #1174
I meant: that's why it won't work properly