Page 7 of 13

Posted: Mon Jul 03, 2006 6:39 am
by trixmoto
A useful event would be OnPlaylistAdd. This would be fired when a track is added to a playlist.

It would either be attached to SDB and provide the SDBPlaylist and SDBSongData, or be attached directly to SDBPlaylist and provide the SDBSongData.

Posted: Mon Jul 03, 2006 9:50 am
by DaledeSilva
Hi, trixmoto, previously you said this when I was asking about creating an autoplaylist via scripting:
In the Playlists table:

isAutoPlaylist should be 1
QueryData should contain the criteria.

If you set a few up first when you look at the database you'll get an idea of how the criteria should be saved.
I've since tried it and can't get itt o work... if you have a chance.. could you please take a look at this thread and help me out?

http://www.mediamonkey.com/forum/viewto ... 2624#52624


thanks,
Dale.

Posted: Tue Jul 04, 2006 6:37 pm
by MoDementia
On the Track Properties -> info tab I would like the

song ID and Album ID

Maybe some others
Artist ID
Genre ID

Can make Debugging alot quicker, plus I don't have MS Access :)

Sub Titled "Database Info" or similar

Posted: Tue Jul 04, 2006 7:24 pm
by DiddeLeeDoo
MoDementia wrote:I don't have MS Access :)
http://www.openoffice.org/ is a free 'MS Access' application. Not really Access but allow you to browse the tables and do queries.

Posted: Tue Jul 04, 2006 9:40 pm
by MoDementia
Thanks, have it up and running (just Base) but I was also thinking that it would be an easy way to communicate with users.

e.g.

User: No album art showing in browse by art

Scripter: have a look in properties -> info and find the album ID, then look in ...\skins\auto\artwork there should be a .jpg with that id eg. 1234.jpg

User: yes it is (or no it isn't)

Scripter: ok so it has (hasn't) cached it, ......

Posted: Wed Jul 05, 2006 3:40 am
by trixmoto
Yes, I've often thought this would be useful information to have in the Properties tab. Although maybe it should be an advanced option because I think it might confuse users if they didn't know what it was there for.

Posted: Tue Jul 11, 2006 3:05 am
by MoDementia
Please make fso.CorrectFilename() remove trailing full stops from directories.

Album Name = "All the Way..."

Mask = \Album Name\Title

fso.CreateFolder() = \All the Way\

fso.CreateTextFile() = error (looking for \All the Way...\)

Posted: Mon Jul 24, 2006 3:23 am
by MoDementia
For the second time in a week this issue has crippled a script I would like to/am writing.

I changed the auto dj add tracks from playlist to use but can't read the new value from the script until I restart MM :( :x :cry:

Example here http://www.mediamonkey.com/forum/viewtopic.php?t=11146
Steegy wrote:Thought about this a long time ago, but now finnaly really pushing the "submit" button...

I would like it to be possible to change MediaMonkey's INI configuration settings, while MediaMonkey is running, and in such a way that MediaMonkey doesn't simply overwrite those changes when it shuts down.
Maybe this would be possible with an exta ISDBIniFile.StringValue method that would apply the changes directly to MediaMonkey's instance too (so updating MM's internal loaded variables).

This would make it possible to:
Make a lost internal player visible again
Clear history lists, mask lists, ...
.. and other things that aren't directly accessible through MM.

This would allow us to make those changes with a script (or "advanced" options panel) within MediaMonkey. For most changes, probably MM would have to be restarted for changes to take effect.

But it would probably be more useful and easier for everyone (both dev's and scripters) if these "advanced" options were available through a built-in options panel. So I'm sorry if I should've posted this in the normal wishlist forum.

Cheers
Steegy

Posted: Thu Jul 27, 2006 4:52 am
by Big_Berny
I'd really like an event like OnTrackPropertiesChange/OnTrackInformationChange. So if something somefield of a song in the database gets change the event gets started. This could for example be the playcounter or everything else.

That would be very powerful because you could also run scripts when a song gets changed by synching with a portable player.

What do you think about that?
Big_Berny

Posted: Wed Aug 02, 2006 8:37 am
by trixmoto
Not a big wish, but it would be nice if the UI controls (ie. SDBUIEdit) dimmed when they were disabled. This would make it clearer to the user that they were not-enabled. (The SDBDropDown already does this if the Style=2.)

Posted: Thu Sep 21, 2006 6:06 pm
by Steegy
I'd like to request a event: Common.OnResized (or something similar like OnAfterResize)

This event would only trigger when the resizing operation is complete, compared to the current Common.OnResize, thus without causing high cpu%, flickering and mouse problems (program thinks that mouse button is still clicked after releasing the mouse button for a dragging-resize operation).

Cheers
Steegy

Posted: Fri Oct 13, 2006 3:26 am
by trixmoto
It would be REALLY useful if the "OnTrackProperties" function returned two lists of tracks, the first being the tracks before the changes were made and the second being the tracks after the changes. This would allow a comparison of the changes to be made.

Posted: Fri Oct 13, 2006 3:53 am
by Peke
If I got whole topic right.
Trix, why dont you create var with first result update and then compare with updated result, with some UI this can make mirackles.
But from the other side I could be wrong?

Posted: Fri Oct 13, 2006 5:43 am
by trixmoto
I'm trying to see if the user has changed the rating. So I don't want to run the code everytime the user updates the properties, only if they have updated the properties including changing the rating value.

Posted: Fri Oct 13, 2006 8:21 am
by DiddeLeeDoo
Would you not have the Before value somewhere already? Dunno what you want to use it for, so I'm just guessing.

I've just noticed the OnTrackProperties was perfect in v2.5.2 and somehow not in later versions. I'm afraid of loosing speed and functionality in all the great stuff that's already available. I guess things like this is putting the toe into the bloated area.

Sure there's no other way?