WSH Panel Mod, foo_uie_wsh_panel_mod |
![]() ![]() |
WSH Panel Mod, foo_uie_wsh_panel_mod |
Jan 28 2012, 16:13
Post
#1351
|
|
|
Group: Members Posts: 5 Joined: 27-January 12 Member No.: 96734 |
Thanks Marc, that work for text.
|
|
|
|
Feb 2 2012, 23:30
Post
#1352
|
|
|
Group: Members Posts: 276 Joined: 31-December 10 Member No.: 86948 |
I can't seem to use the preferences>components>get updates button or the help>check for updated components menu item to get updates for this component - am I doing something incorrectly, or are these methods not available for WSH panel mod?
Thanks very much for this very powerful component! |
|
|
|
Feb 2 2012, 23:35
Post
#1353
|
|
![]() Group: Members (Donating) Posts: 763 Joined: 25-September 03 From: Umeå, Sweden Member No.: 9001 |
The update notifier and downloader only works with components hosted on the official components site.
If it's not on there, foobar2000 doesn't know about it. -------------------- Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered. |
|
|
|
Feb 17 2012, 22:48
Post
#1354
|
|
|
Group: Members Posts: 6 Joined: 26-January 12 Member No.: 96722 |
made some rectangles with gr.drawrect and noticed unexpected behaviour (at least for me)
when the line width is odd number, line is drawn 1 point from left to right and from up to down instead of from outside to inside or vice versa is it supposed to be like that ? |
|
|
|
Mar 4 2012, 18:44
Post
#1355
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
@T.P. Wang : possible bug with timer (SetTimout or SetInterval methods)
WSH panel mod version = 1.5.2 Hi, i work on a script for a playlist viewer, and for scrolling my playlist with mousewheel, i use this function: CODE function on_mouse_wheel(delta) { var i; if(!list.waiter_timer) { fb.trace("false!!"); if(delta>0) { fb.trace(">0"); list.waiter_timer = window.SetTimeout(function () { fb.trace(">0 run"); for(i=0;i<list.mousewheel_scrollstep;i++) { scrollup_spv(fb.ActivePlaylist, 1); } list.waiter_timer = false; window.Repaint(); }, 25); } else { fb.trace("<0"); list.waiter_timer = window.SetTimeout(function () { fb.trace("<0 run"); for(i=0;i<list.mousewheel_scrollstep;i++) { scrolldown_spv(fb.ActivePlaylist, 1); } list.waiter_timer = false; window.Repaint(); }, 25); } } } if i use mousewheel massively, console display this: CODE ... false!! >0 false!! <0 false!! <0 false!! <0 false!! <0 false!! >0 as you can see, the timeout is never rechead because console never display ">0 run" or "<0 run", and result is that my playlist isn't scrolling at all ! Important comment about this weird behaviour: this problem is NOT PRESENT when i run foobar (so at the first launch of the WSH jscript), but it happens after some while, that became messy and no more scroll (the mousewheel is just an example, it seems that all my timer are broken!) only a restart of foobar fix the problem (editing script then Applying has NO effect ...) So, after testing this, i'm pretty sure that's a problem with these new methods to set timers brought with v1.5.x version of your component, and i've read in v1.5.0 betas that you've already encoutered some issues with them (timers never stopped on exit if i remember ...) Could you check it please, because for now i'm really stuck! Thanx by advance for your feedback Regards, Br3tt This post has been edited by Falstaff: Mar 4 2012, 18:56 -------------------- http://br3tt.online.fr/
|
|
|
|
Mar 10 2012, 11:14
Post
#1356
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
FYI: that wasn't a bug: timer creation overflow or something like that.... fixed. Thanx T.P for the help.
-------------------- http://br3tt.online.fr/
|
|
|
|
Mar 10 2012, 14:21
Post
#1357
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
WSH PM v1.5.2: on the script editor, Replace All feature seems broken (at least for me) ...
just try to replace a string by another: press CTRL+H, fill source string, fill target string, click Replace All button ==> only the last occurs found is changed !!! i'm the only one with this weird behaviour ? thanx for any feedback about this please. -------------------- http://br3tt.online.fr/
|
|
|
|
Mar 10 2012, 22:33
Post
#1358
|
|
![]() Group: Members Posts: 120 Joined: 5-October 08 From: Estonia Member No.: 59398 |
You are not alone, it's not working here too.
|
|
|
|
Mar 10 2012, 22:50
Post
#1359
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
thank you, i'll PM this bug to T.P
-------------------- http://br3tt.online.fr/
|
|
|
|
Mar 15 2012, 07:31
Post
#1360
|
|
|
Group: Developer Posts: 486 Joined: 8-June 07 From: Chengdu Member No.: 44175 |
WSH PM v1.5.2: on the script editor, Replace All feature seems broken (at least for me) ... Thanks for reporting. It's already fixed in r251d912aa29f (source code), I'll release it when it's ready. |
|
|
|
Mar 15 2012, 07:48
Post
#1361
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
ok, thank you
-------------------- http://br3tt.online.fr/
|
|
|
|
Mar 15 2012, 22:10
Post
#1362
|
|
|
Group: Members Posts: 1 Joined: 15-March 12 Member No.: 97830 |
Hello! whs panel mod(1.5.2) is not working on windows 8 CP x64. Foobar v1.1.10. Skin: ZiX. On windows 7 it works fine. Enclose logs.
CODE UI Hacks: DLL-hijacking failed
UI Hacks: hooks status 0x020000 Watching: C:\Users\Дмитрий\Music Watching: C:\Users\Public\Music Watching: D:\torrents\Prodigy WSH Panel Mod ({30E5E5AB-C693-4364-BBC6-5F20AC7C8C8D}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\VBscript.js" WSH Panel Mod ({30E5E5AB-C693-4364-BBC6-5F20AC7C8C8D}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({30E5E5AB-C693-4364-BBC6-5F20AC7C8C8D}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Options.js" Error: WSH Panel Mod ({30E5E5AB-C693-4364-BBC6-5F20AC7C8C8D}): Microsoft JScript runtime error: Automation server can't create object File: <main> Ln: 1089, Col: 5 <source text only available at compile time> WSH Panel Mod ({26A7BCC7-EE59-4150-A3EA-E1FFD07EE3F6}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\VBscript.js" WSH Panel Mod ({26A7BCC7-EE59-4150-A3EA-E1FFD07EE3F6}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({26A7BCC7-EE59-4150-A3EA-E1FFD07EE3F6}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\TabbedPlaylistManager.js" WSH Panel Mod ({26A7BCC7-EE59-4150-A3EA-E1FFD07EE3F6}): initialized in 8 ms WSH Panel Mod ({B9777502-06C9-45D2-A62D-917C89F2E968}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({B9777502-06C9-45D2-A62D-917C89F2E968}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Options.js" Error: WSH Panel Mod ({B9777502-06C9-45D2-A62D-917C89F2E968}): Microsoft JScript runtime error: Automation server can't create object File: C:\Program Files\Foobar2000\themes\tech\scripts\Options.js Ln: 28, Col: 1 <source text only available at compile time> WSH Panel Mod ({5C157219-D29F-47E5-A394-58B183B9DDE4}): initialized in 3 ms Error: WSH Panel Mod ({4E726A85-4788-4FEE-8476-F5A11B1A3D89}): Microsoft JScript runtime error: Automation server can't create object File: <main> Ln: 149, Col: 1 <source text only available at compile time> WSH Panel Mod ({0605A192-2F68-4E40-AF10-38D5E184F6CF}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" Error: WSH Panel Mod ({0605A192-2F68-4E40-AF10-38D5E184F6CF}): Microsoft JScript runtime error: Automation server can't create object File: <main> Ln: 72, Col: 1 <source text only available at compile time> Album list panel: initialised in 0.010 s Filter Panel - Genre: initialised in 0.002 Filter Panel - Genre: initialised in 0.002 Filter Panel - Genre: initialised in 0.002 WSH Panel Mod ({409D6A1A-5037-4F7A-AEF0-1D73BC23761B}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\VBscript.js" WSH Panel Mod ({409D6A1A-5037-4F7A-AEF0-1D73BC23761B}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({409D6A1A-5037-4F7A-AEF0-1D73BC23761B}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\TabbedPlaylistManager.js" WSH Panel Mod ({409D6A1A-5037-4F7A-AEF0-1D73BC23761B}): initialized in 7 ms WSH Panel Mod ({9624DCFB-CA24-4C48-9C3C-1CCA1BEF3A04}): initialized in 2 ms WSH Panel Mod ({0FD6B6B6-2BAF-4D4E-8CDE-08D414151CF8}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Options.js" WSH Panel Mod ({0FD6B6B6-2BAF-4D4E-8CDE-08D414151CF8}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" Error: WSH Panel Mod ({0FD6B6B6-2BAF-4D4E-8CDE-08D414151CF8}): Microsoft JScript runtime error: Automation server can't create object File: C:\Program Files\Foobar2000\themes\tech\scripts\Options.js Ln: 28, Col: 1 <source text only available at compile time> WSH Panel Mod ({0FD6B6B6-2BAF-4D4E-8CDE-08D414151CF8}): initialized in 3 ms WSH Panel Mod ({087C3FA2-1CE7-4E33-AB60-A10F3E21F9FD}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Options.js" Error: WSH Panel Mod ({087C3FA2-1CE7-4E33-AB60-A10F3E21F9FD}): Microsoft JScript runtime error: Automation server can't create object File: C:\Program Files\Foobar2000\themes\tech\scripts\Options.js Ln: 28, Col: 1 <source text only available at compile time> WSH Panel Mod ({49F61F0E-2BE1-4B88-85C2-DFB4F4599C45}): initialized in 0 ms WSH Panel Mod ({B0B475A5-B24B-4885-8DE1-01BBC4D99025}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" Error: WSH Panel Mod ({B0B475A5-B24B-4885-8DE1-01BBC4D99025}): Microsoft JScript runtime error: Automation server can't create object File: <main> Ln: 151, Col: 1 <source text only available at compile time> WSH Panel Mod ({38DE0A5D-0F6E-4A44-8F89-557E30C3642C}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({38DE0A5D-0F6E-4A44-8F89-557E30C3642C}): initialized in 3 ms WSH Panel Mod ({ECE63506-16B9-4936-AC76-95AC2E44874D}): initialized in 1 ms WSH Panel Mod ({F11C31E3-6E25-4176-B1F4-14BC6A3D54FC}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({F11C31E3-6E25-4176-B1F4-14BC6A3D54FC}): initialized in 2 ms WSH Panel Mod ({BC89B381-A74B-4965-8379-6A43520F2169}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({BC89B381-A74B-4965-8379-6A43520F2169}): initialized in 7 ms WSH Panel Mod ({21E87952-AAE5-4900-9F3B-154C0B342457}): initialized in 0 ms WSH Panel Mod ({F30A52BF-6778-441E-8C28-965DACD4809A}): Parsing file "C:\Program Files\Foobar2000\themes\tech\scripts\Button.js" WSH Panel Mod ({F30A52BF-6778-441E-8C28-965DACD4809A}): initialized in 4 ms Error: WSH Panel Mod (ZiX+ HeadCoverPanel by Jensen and karvos): Microsoft JScript runtime error: Automation server can't create object File: <main> Ln: 49, Col: 3 <source text only available at compile time> WSH Panel Mod (ZiX+ AniTrackInfoPanel by Jensen): initialized in 2 ms WSH Panel Mod (ZiX+ PBCPanel by Neonphytismo): initialized in 2 ms WSH Panel Mod (ZiX+ RatingPanel): initialized in 0 ms WSH Panel Mod (ZiX+ VolPanel by Neonphytismo): initialized in 1 ms WSH Panel Mod (ZiX+ VolPanel by Neonphytismo and r0lZ): Parsing file "C:\Program Files\Foobar2000\themes\ZiX\skins\ZiX+\Scrollbar\scrollbar.js" WSH Panel Mod (ZiX+ VolPanel by Neonphytismo and r0lZ): initialized in 2 ms WSH Panel Mod (ZiX+ SimpleCoverPanel by Br3tt Modified by Neonphytismo): initialized in 1 ms WSH Panel Mod (ZiX+ PBOPanel by Neonphytismo): initialized in 3 ms WSH Panel Mod (ZiX+ VolPanel by Neonphytismo): initialized in 1 ms WSH Panel Mod (ZiX+ VolPanel by Neonphytismo): initialized in 0 ms w7shell: init started w7shell: GDI+ initialized w7shell: COM initialized w7shell: running on Windows NT 6.1.7600 w7shell: DWM composition enabled w7shell: WA_DISALLOW_PEEK successfully set w7shell: WA_DISALLOW_PEEK successfully set w7shell: WA_HAS_ICONIC_BITMAP successfully set w7shell: WA_FORCE_ICONIC_REPRESENTATION successfully set w7shell: failed to set WA_FLIP3D_POLICY: 0x80070057 w7shell: all green Startup time : 0:04.478754 This post has been edited by VirDim: Mar 15 2012, 22:10 |
|
|
|
Mar 15 2012, 23:05
Post
#1363
|
|
![]() Group: Members Posts: 3263 Joined: 27-January 05 From: England Member No.: 19379 |
QUOTE Automation server can't create object this usually means you haven't turned off safe mode in the preferences. and i don't know that theme but my own scripts work fine in the windows 8 x64 CP (i'm not using it now but i tried it for a few days when it was first released) |
|
|
|
Apr 2 2012, 22:49
Post
#1364
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
@T.P Wang
hi, a callback function is missing : function on_playlist_items_added(playlist) {} is ok to check when items are added, but there is nothing to alert us when item is removed from a playlist, i need it too could you add for next version a such callback please? function on_playlist_items_removed(playlist) {} -------------------- http://br3tt.online.fr/
|
|
|
|
Apr 2 2012, 22:52
Post
#1365
|
|
![]() Group: Members Posts: 3263 Joined: 27-January 05 From: England Member No.: 19379 |
QUOTE // [1.4.1] Added:
// playlist: index to indicate that which playlist has items removed // new_count: new items count of the playlist. function on_playlist_items_removed(playlist, new_count) {} |
|
|
|
Apr 2 2012, 23:26
Post
#1366
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
oh, i've missed it
thanx marc -------------------- http://br3tt.online.fr/
|
|
|
|
Apr 7 2012, 18:29
Post
#1367
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
WSH PM v1.5.2: on the script editor, Replace All feature seems broken (at least for me) ... Thanks for reporting. It's already fixed in r251d912aa29f (source code), I'll release it when it's ready. is the next release close ? -------------------- http://br3tt.online.fr/
|
|
|
|
Apr 20 2012, 06:01
Post
#1368
|
|
![]() Group: Members Posts: 3263 Joined: 27-January 05 From: England Member No.: 19379 |
i see 1.5.3 is now released but it seems to be broken. the editor dialog will not open.
|
|
|
|
Apr 20 2012, 07:17
Post
#1369
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
i see 1.5.3 is now released but it seems to be broken. the editor dialog will not open. same issue here, one DUI or CUI -------------------- http://br3tt.online.fr/
|
|
|
|
Apr 20 2012, 12:55
Post
#1370
|
|
|
Group: Developer Posts: 486 Joined: 8-June 07 From: Chengdu Member No.: 44175 |
|
|
|
|
Apr 20 2012, 17:42
Post
#1371
|
|
![]() Group: Members Posts: 2771 Joined: 12-November 06 Member No.: 37463 |
A quick fix is provided hopefully fix that issue. thank you for the update and the fix! i've just tested the SortByFormat feature, it seems ok, but there is a gap according to me: no direction option to sort ascending or descending like provided on the handlelist object (direction: integer, ascending while >0.) is it intended or just thing you forgot? -------------------- http://br3tt.online.fr/
|
|
|
|
Apr 20 2012, 19:03
Post
#1372
|
|
![]() Group: Members Posts: 3263 Joined: 27-January 05 From: England Member No.: 19379 |
thanks for the fix.
|
|
|
|
May 5 2012, 02:09
Post
#1373
|
|
|
Group: Members Posts: 1 Joined: 5-May 12 Member No.: 99493 |
thanks for the fix. I keep getting this error: Failed to load DLL: foo_uie_wsh_panel_mod.dll Reason: This component is missing a required dependency, or was made for different version of foobar2000. Do the docs have any info about dependencies I'm missing? Foobar 1.11.11 |
|
|
|
May 11 2012, 22:11
Post
#1374
|
|
![]() Group: Members Posts: 120 Joined: 5-October 08 From: Estonia Member No.: 59398 |
Hi T.P. Wang!
Is it possible to update the wsh panel engine to support ECMAScript 5 ? There are some new useful features that would be nice to have in wsh panel mod. some examples here Thanks. |
|
|
|
May 20 2012, 10:52
Post
#1375
|
|
|
Group: Members Posts: 73 Joined: 8-September 11 Member No.: 93574 |
Warning : Noob request
Hello. I'm trying to get my way into writing some WSH panel scripts, and of course, as someone who hardly programmed anything but simple macros for years and never used java script, i'm doing mistakes. The worst of those mistakes i've made so far was a dreaded endless loop The result was immediate : WSH panel hang, making fb2k hang as well. I had to kill it using the task manager. But what was worse is that the panel somehow managed to keep the bad script in it's config, so when i restarted fb2k ... it directly hang. I was able to start in safe mode but since i didn't had columns UI in safe mode, i couldn't remove the bad panel so i had to delete wsh_panel.dll.cfg to get rid of this panel and loose other WSH panels as well. Of course, i can blame noone but myself for forgetting to post-increment the counter in one branch of a conditional statement inside the while-loop. However, it would be nice if you could implement something like the security built-in the firefox java-script environment. If a script runs on itself for some time, a popup shows asking whether the user wants to stop the script or continue running it. This way, a bad script will only crash itself and not the whole application. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 22:06 |