Scripting Functionality Thread (NO Script Requests Here!)
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.
It would either be attached to SDB and provide the SDBPlaylist and SDBSongData, or be attached directly to SDBPlaylist and provide the SDBSongData.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 906
- Joined: Sun May 28, 2006 4:22 am
- Location: Australia
- Contact:
Hi, trixmoto, previously you said this when I was asking about creating an autoplaylist via scripting:
http://www.mediamonkey.com/forum/viewto ... 2624#52624
thanks,
Dale.
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?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.
http://www.mediamonkey.com/forum/viewto ... 2624#52624
thanks,
Dale.
Product Designer & Indie Developer.
Building at the intersection of motion, art, and code.
Find me on twitter and all the other ones here.
Building at the intersection of motion, art, and code.
Find me on twitter and all the other ones here.
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
-
- Posts: 1017
- Joined: Wed Mar 01, 2006 1:09 am
- Location: In a jungle down under
- Contact:
http://www.openoffice.org/ is a free 'MS Access' application. Not really Access but allow you to browse the tables and do queries.MoDementia wrote:I don't have MS Access
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
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, ......
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, ......
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.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
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
Example here http://www.mediamonkey.com/forum/viewtopic.php?t=11146
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
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
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
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
Scripts in use: Genre Finder / Last.fm DJ / Magic Nodes / AutoRateAccurate / Last.FM Node
Skins in use: ZuneSkin SP / Eclipse SP
AutoRateAccurate 3.0.0 (New) - Rates all your songs in less than 5 seconds!
About me: icoaching - internet | marketing | design
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.)
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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
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
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
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.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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?
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?
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
How to attach PICTURE/SCREENSHOTS to forum posts
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.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 1017
- Joined: Wed Mar 01, 2006 1:09 am
- Location: In a jungle down under
- Contact:
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?
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?