Page 3 of 5

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Tue Jul 27, 2010 6:33 am
by ZvezdanD
Peke wrote:Maybe I'm Mistaking but I tried using OnTrackEnd and this should be getting if Last track on list check:
If ((SDB.Player.CurrentPlaylist.Count-1) = SDB.Player.CurrentSongIndex) and (Not SDB.Player.isShuffle) And (not SDB.Player.isRepeat) Then
Pay attention, please ;) Here is what I said: "There is also not any index to check if the track is the last in the list if Shuffle is turned on". You know, the main purpose of this script is especially when Shuffle is turned on. Never mind, trixmoto's suggestion with a timer and Player.isPlaying seems to work fine.

Anyway, I think it would be too much better for scripters if you MM developers implement something like OnTotalPlaybackEnd or something similar and I bet that it would be just 15 minutes of your work to implement something like that. Please, take a look at the code of this script - it is full of dirty and unnecessary code just because MM lacking of proper API.

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Tue Jul 27, 2010 3:57 pm
by Peke
Will look into it. I know that I had similar issue with last.fm plugin. Will check your script and do some tests to see but I think that it should be possible.

It has lots of space to improve that is a fact. Unfortunately it is not just 15 min :(

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Sun Aug 01, 2010 2:35 pm
by pkw115
ZvezdanD, Is there a way to turn this script on and off? With this script installed I can no longer type the letter "q" in the search box. Hitting the "q" key, of course triggers this script, but there are times when I'll want to type a "q" and not launch the script. Thanks.

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Sun Aug 01, 2010 7:23 pm
by ZvezdanD
pkw115 wrote:Is there a way to turn this script on and off? With this script installed I can no longer type the letter "q" in the search box.
I could add such option, but maybe it would be better with a changed shortcut, for example Ctrl+Q. You could do it by yourself if you open c:\Program Files\MediaMonkey\Scripts\Auto\QueueList.vbs in Notepad and change line 35 from:

Code: Select all

Const sScriptShortcut = "Q"
to

Code: Select all

Const sScriptShortcut = "Ctrl+Q"

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Sun Aug 01, 2010 11:05 pm
by pkw115
Thanks, I'll give it a try.

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Wed Jan 19, 2011 9:33 am
by BRcr
Hello :)
Thanks for your Queue List - it just saved me!

I've got a couple of ideas you might think about.

First is quite a simple one - the realized in script hotkey to show(make visible/ set a focus on) QueueList playlist. It would be much more comfort than searching QueueList in tree view manually each time you need it.

This one is a bit more complicated, but useful enough.
The idea is to show the numeration of queued tracks in NowPlaying view - almost like in Winamp.
I suppose it could be realized through the one of "Custom" fields in properties of tracks. The script can change for example the "Custom 5" field to the number of track in QueueList when it's added in there. On removal from QueueList this field can be cleared or returned to its initial condition.
There is just one big problem. When any track is to be removed from the QueueList, all the others tracks "Custom 5" fields should be apdated. But tagging is not that fast actually and if there will be much enough tracks in QueueList it might cause troubles, conflicts etc. But I can't see any other way to realize this idea in MediaMonkey for now...

Any chances it could be done?
Thanks for attention :)

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Wed Jan 19, 2011 11:10 am
by ZvezdanD
BRcr wrote:I've got a couple of ideas you might think about.
These are nice suggestions indeed. With your first suggestion, how about using "Ctrl+M" as an hotkey, to be similar to hotkey for "Manage Queue" option in Winamp? BTW, what do you think about modifying hotkey for "Queue Selected" option from "Q" to "Ctrl+Q"? It would be different then hotkey for the same option in Winamp, but it would eliminate the problem mentioned few posts before. The "Q" hotkey could be problematic as well if someone edits tags directly on the main tracklist or Now Playing panel and want to enter that character.

I am not sure about the second suggestion, since I don't like to change any tag in files for such purpose, not even temporary. Writing tags into files could slow down the program especially with files on networked drives, not to mention that someone could have read-only audio files whose tags cannot be updated. However, if we stick with MM 4.0, maybe this could be realized without using some actual tag since MM 4.0 could displays several new fields which are not stored into any tag, but only in the database file, e.g. Skipped #, Podcast, Series, Episode #... Well, someone using these fields would not be happy with such solution either...

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Wed Jan 19, 2011 12:27 pm
by Mizery_Made
ZvezdanD wrote:MM 4.0 could displays several new fields which are not stored into any tag, but only in the database file, e.g. Skipped #, Podcast, Series, Episode #...
I don't believe these are "database only" fields. I seem to recall seeing somewhere in Mantis that these fields are mapped to other tags, such as Podcast and/or Series going into Album and Episode # going into Track # or something. Thus, if you were to modify the Episode # of a file, it may try writing that to the Track #

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Wed Jan 19, 2011 2:08 pm
by BRcr
ZvezdanD wrote:...how about using "Ctrl+M" as an hotkey, to be similar (...) BTW, what do you think about modifying hotkey for "Queue Selected" option from "Q" to "Ctrl+Q"?
The key itself isn't that matter - anyone can easyly change it manually in the script after all. The matter point is just an existance of such functionality. So "Ctrl+M" and "Ctrl+Q" would be just fine for everyone by default. What for me - I prefer using a one-key hotkey for comfort, so I've changed "Q" to "F2" and I'll change the shortcut to QueueList to "F3", I suppose...
ZvezdanD wrote:Writing tags into files could slow down the program especially with files on networked drives, not to mention that someone could have read-only audio files whose tags cannot be updated.
Here I must agree with you completely. I haven't thought about it - I don't use any network drives and have no read-only-something in my system :)
So it seems like the only feasible option is a database-only tag. What about happiness of people who could use that one tag, I think that it should be done optional. You could simply define a global variable in the script file to turn this feature on or off and set it off by default. This way everyone would be quite happy :)
Mizery_Made wrote:I don't believe these are "database only" fields.
Lets just hope they will really be database-only tags. This is very simple for MM developers to realize it.

P.S. Sorry for my bad French, my native is Russian... :wink:

Re: Queue List 1.0.1 (2010-07-26) [MM2+3]

Posted: Thu Jan 20, 2011 6:12 am
by BRcr
A little remark to the shortcut for QueueList playlist. It would be nice to change the reaction for second press: when QueueList is in focus the shortcut causes the call of "Back to previous view(Alt+Left)" function. This way: you look at the list, change it if necessary and go back - all fast and easy. :)

Re: Queue List 1.1 (2011-01-22) [MM2+]

Posted: Sat Jan 22, 2011 5:13 pm
by ZvezdanD
There is a new update - v1.1 - 2011-01-22:
* Added: F4 hotkey to show Queue List/go back to the previous view;
* Changed: Q hotkey to F3 for the Queue Selected option.

I suggested developers to add a possibility to display some non-tag field within the Summary column for the serial number of queued tracks, but chances for that are not very bright. Until then I cannot do anything more.

Re: Queue List 1.1 (2011-01-22) [MM2+]

Posted: Wed Jan 26, 2011 9:36 pm
by Nukm
thanks a lot for this (i was one of the people requesting an enqueue function)
still it seems like an ugly hack for what should be a core feature :/

Re: Queue List 1.1 (2011-01-22) [MM2+]

Posted: Sat Jan 29, 2011 10:52 pm
by kmm2908
Getting the following error on start up:

error #424 Microsoft VBScript runtime error
Object Required: 'SDB.Player.CurrentSong'
File: "...\QueueList.vbs", Line: 314, Column: 12

If I click ok will then continue as expected.
WinAmp 5.601
Media Monkey 3.2.3.1303

Any help gratefully received

Re: Queue List 1.1 (2011-01-22) [MM2+]

Posted: Sun Jan 30, 2011 5:59 pm
by ZvezdanD
kmm2908 wrote:Getting the following error on start up:
Thanks for the report. I cannot reproduce that bug, but you could try the modified version - v1.1.1 - 2010-01-30:
* Fixed: error on start-up in some rare cases.

Re: Queue List 1.1 (2011-01-22) [MM2+]

Posted: Sun Jan 30, 2011 6:06 pm
by Eyal
kmm2908 wrote:If I click ok will then continue as expected.
WinAmp 5.601
Media Monkey 3.2.3.1303
Are you using WinAmp as external player in MM?
In that case the NowPlaying list is disabled in MM, and it could explain why 'SDB.Player.CurrentSong' is unavailable.