Without seeing all of your code I can't tell for sure. Off the top of my head, the only explanation I can think of is that i is defined somewhere else (perhaps globally) and this is interfering with the loop. Beyond that...no idea...

... I was wondering whether someone could solve the delay problem in marc playcount script? ...

Well, delays tend to occur when the computer is busy doing something, so apart from removing some actions, i don't think it's possible.Now, i don't find this particular script. Maybe he released a new version of his samples after i downloaded them.

QUOTE (rawny @ Jun 7 2012, 17:59)

Without seeing all of your code I can't tell for sure. Off the top of my head, the only explanation I can think of is that i is defined somewhere else (perhaps globally) and this is interfering with the loop. Beyond that...no idea...

Ha, i'm such a noob I don't use variables such as "i" globally of course, only for loops ...But this loop was nested inside another loop ... using i as a counter of course.I was actually resetting i in the middle of the outer loop, causing it to become endless. And i was trying to find why the inner loop was endless

Ha, i'm such a noob I don't use variables such as "i" globally of course, only for loops ...But this loop was nested inside another loop ... using i as a counter of course.I was actually resetting i in the middle of the outer loop, causing it to become endless. And i was trying to find why the inner loop was endless

Haha, I've been there before! It's sometimes more useful to use meaningful names for loop counters, just so when you get to the inner-loop you make sure you're using innerLoopIndex and not outerLoopIndex (although to be fair I only tend to do this when I'm coding something semi-serious, I should probably do it more often ).

I had the first (outer) loop coded several days ago, but only yesterday i decided to add statements to gather informations about my track groups. I totally forgot about the first loop.What i should have done is code the comparator as an external function and take benefit of local variables.Speaking of local variables, it's probably obvious for some people, but in case it's not, i made a test.

If a local variable is defined inside a function using var statement, even if a global variable has the same name, the global will not be overwritten. However, if var is omitted, the global will be overwritten.Furthemore, if a local variable is defined with var, then the variable is changed to another value, like in this second test

I've used the following function to add a stop-after-album feature. The important parts are plman.GetPlaylistItems(plman.PlayingPlaylist), which give you the playlist's tracks in order, and plman.GetPlayingItemLocation().PlaylistItemIndex, which gives the index of the current track.

Even if there is a way to do this, I'm not sure it's possible because I get continuous on_mouse_move events whether the mouse is moving or not. Is this the way it's supposed to be, because it seems like a bug. I verified that it wasn't weirdness with my mouse by turning off my mouse and not touching the trackpad on my laptop.

I can confirm on_mouse_move seems to trigger continually as long as the mouse is in the WSH panel area.One way to work around this would be to store prevMouseXand prevMouseY in some variable/object and make a conditional check in on_mouse_move

CODE

if (prevMouseX != x || prevMouseY != Y)

to know whether the mouse is actually moving or not.Here is some working code you can use if you can find a way to actually hide the cursor. I tried window.SetCursor(...); but there is no "hidden" option.

Thanks for the tip marc2003 It's much simpler than i would have imagined.

Well, while i'm here i could as well ask something. Is there a simple way of preventing on_mouse_lbtn_up() from trigerring it's effect when you double-click. Currently, if i double click, it will trigger on_mouse_lbtn_up twice and on_mouse_lbtn_dblclk once. That's logical but not very practical.I guess know i can call a delayed function in on_mouse_lbtn_up with a conditional check that would evaluate to false if on_mouse_lbtn_dblclk have been triggered but maybe there is something easier.EDIT : Tested the delay, it works. Still willing to learn possible alternatives

after WSH VU meter appears im interested in other activex objects i can add to my wsh panel. i know about shell object, vbcontrol (but dont know how to use it), httpdocument, filesystem. and now its vumeter. is anybody knows any interesting object? as i remember, marc2003 posted somewhere script showing your soundcard name. can anybody writes something about it or show me where i can read abou that?

thanks, im also wanted for object to control file copy and transcoding audio by SOX otherwise shell. it will be nice if i get progress of each file.now im using autoitx3 to control window size without standart windows borders, but in same way. and near aims - transcoding and file copy operations

Also big props Falstaff - your scripting has really made my layout appealing. But now the annoying request.

Is there any way to get the playlist to collapse the album views, so tracks could be displayed or not via click (e.g. on heading/arrow/icon to expand/contract) and bonus points if the now playing album automatically expands.

I'm essentially searching for something similar to ELplaylist that works in DUI.

From one of the WSH script (from musickarte skin), the following error is displayed when I updated my WSH panel mod to the latest version 1.5.2.

Error:

CODE

JScript runtime error:Object doesn't support this property or method

WSH error line:

CODE

var hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8});

It seemed that the method utils.GetHWND no longer exist in the latest version. I have no knowledge about WSH scripting and thus would need help on this issue. This issue had kept me from updating my previous WSH version (1.4.9) to the latest version

I want to have a volume control that only shows when the mouse cursor is over it. I've searched for any mouse-over examples so I could modify T.P Wang's volbar code example, but haven't found anything. I know next to nothing about coding, and my attempts to find javascript documentation and learn how to do this on my own have not gone well. So I'm hoping someone can point me to an example I can work from, or show how it's done.