Detecting changes to main tracks window

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

flashk
Posts: 188
Joined: Sun Dec 11, 2005 5:04 pm

Detecting changes to main tracks window

Post by flashk » Wed Sep 09, 2009 7:31 pm

Hi,

I want my script to be notified whenever there is a change to the main tracks window. I tried using the OnTrackListFilled event, but that doesn't handle all cases. For example, it doesn't get notified when the sort order changes or when an item is removed or dragged to a new position. Is there a way to handle these cases? If not, then is it possible to add this capability to the next release?

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Detecting changes to main tracks window

Post by trixmoto » Fri Sep 11, 2009 3:26 am

I normally use OnChangedSelection but I don't know if this will cover everything that you're looking for.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.

flashk
Posts: 188
Joined: Sun Dec 11, 2005 5:04 pm

Re: Detecting changes to main tracks window

Post by flashk » Fri Sep 11, 2009 12:47 pm

Thanks, but I don't think that covers what I want. I tried out OnNowPlayingModified, and that does exactly what I want, but only with the now playing list. If there was a similar OnTrackListModified event I would be a happy camper :D

Post Reply