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.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
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.