Scripting Functionality Thread (NO Script Requests Here!)
-
- Posts: 906
- Joined: Sun May 28, 2006 4:22 am
- Location: Australia
- Contact:
not sure if this thread is still active or not, so if there's a more appropriate place to post this request, please let me know.
currently, previously OnChangedSelection has let a script know whenever the tracklist has changed because it usually only changes when a new node is navigated to.
Now, however, because a user can set search to "Current Selection" the tracklist can change without changing nodes and OnChangedSelection doesn't report (logically).
I would like a specific OnChange event for the tracklist window.
currently, my prettypictures script uses onChangedSelection and everytime has to count the tracklist items to determine whether the tracklist has changed - it's also why PrettyPictures doesn't refresh if you do a search in current selection.
thanks,
Dale.
currently, previously OnChangedSelection has let a script know whenever the tracklist has changed because it usually only changes when a new node is navigated to.
Now, however, because a user can set search to "Current Selection" the tracklist can change without changing nodes and OnChangedSelection doesn't report (logically).
I would like a specific OnChange event for the tracklist window.
currently, my prettypictures script uses onChangedSelection and everytime has to count the tracklist items to determine whether the tracklist has changed - it's also why PrettyPictures doesn't refresh if you do a search in current selection.
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
OnTrackDeleted
Please
Sub OnTrackDeleted(DeletedTrack As SDBSongData, 0=Deleted from Library 1=Deleted from Library and Computer.)
Sub OnTrackDeleted(DeletedTrack As SDBSongData, 0=Deleted from Library 1=Deleted from Library and Computer.)
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
OnTrackProperties column selection
The ability to supply a list of columns with OnTrackProperties
e.g.
Script.RegisterEvent SDB, "OnTrackProperties(Custom1, Genre, Mood)", "SDB_OnTrackProperties"
Would only be triggered when one of the columns Custom1, Genre or Mood is modified.
e.g.
Script.RegisterEvent SDB, "OnTrackProperties(Custom1, Genre, Mood)", "SDB_OnTrackProperties"
Would only be triggered when one of the columns Custom1, Genre or Mood is modified.
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
I already need this (and asked for it):MoDementia wrote:OnChangedFilter(OldFilterIndex,NewFilterIndex)
No specific application yet....
I'm sure if it was available we would find a use for it
http://www.mediamonkey.com/forum/viewto ... 602#128602
Wawi functionality
Would it be possible to implement functionalit such as Wawi web interface?
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
Re: Scripting Functionality Thread (NO Script Requests Here!)
Method for translating autoplaylist querydata into SQL and vice versa.
I ran dbgview while opening the properties of a track to find out how the playlists section is being created (especially autoplaylist entries).
MM converts the querydata into an AND part of a SQL statement e.g.
If a method is too complicated (Read part is already part of MM code) then an example of valid sections and how they are translated so we can write our own subroutines would surfice.
Something similar to the scripts.in or skins.ini pages on the wiki.
DaledeSilva has already asked about it (sort of) here
I ran dbgview while opening the properties of a track to find out how the playlists section is being created (especially autoplaylist entries).
MM converts the querydata into an AND part of a SQL statement e.g.
Code: Select all
FROM Songs WHERE Songs.ID = 9651 AND (Songs.PlayCounter>=1 OR Songs.LastTimePlayed<(39639.589950266))
Something similar to the scripts.in or skins.ini pages on the wiki.
DaledeSilva has already asked about it (sort of) here
Re: Scripting Functionality Thread (NO Script Requests Here!)
I definitely support this!
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.
Re: Scripting Functionality Thread (NO Script Requests Here!)
I've a extension done with VB .NET, it adds support for the MCE remote, I noticed there is no way to toggle mute.
Re: Scripting Functionality Thread (NO Script Requests Here!)
I also support this request.MoDementia wrote:Method for translating autoplaylist querydata into SQL and vice versa.
I think it would be good to have a function like:
Code: Select all
Function SDBDatabase.GetPlaylistQuery(ID As Integer) As String
This would enable things like:
- Apply filters to a playlist
- Combine playlists together
- Refine a playlist "on the fly" (e.g. select only 5 stars songs from the playslit)
Its main usage would clearly be for auto-dj scripts but we can imagine some other applications like maintenance or statistics.
-
- Posts: 1321
- Joined: Thu Jun 15, 2006 3:26 pm
- Location: Geelong, Victoria, Australia
Re: Scripting Functionality Thread (NO Script Requests Here!)
Save the current volumestax wrote:I've a extension done with VB .NET, it adds support for the MCE remote, I noticed there is no way to toggle mute.
set volume to 0
restore saved volume.
Re: Scripting Functionality Thread (NO Script Requests Here!)
While I was making small testing Script I noticed that we are missing:
Code: Select all
Function SDBApplication.GetSongData(TrackID As Integer) As ISDBSongData
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
Re: Scripting Functionality Thread (NO Script Requests Here!)
I just started looking at the scripts this afternoon, and would like the following:
A new ISDBApplicationEvents called OnStartSync
This event would be triggered when a device is synchronized. The registered event would block the sync, running a procedure. The sync will continue when the procedure has finished. OnStartSync would receive a parameter containing device information (at a minimum, a drive letter).
Specifically, I have a Sansa running Rockbox, and am using smilerz script to import playcounts to MM (http://mediamonkey.com/forum/viewtopic. ... ox#p153922). Then I have MM set up to sync unplayed podcasts .. deleting the rest. This way, after I listen to a podcast, scrobbler records that I listened to. When I autosync, I want to be able to run smilerz script prior to MM determining what to syncronize. Without this functionality, I have can't run autosync when I connect the device - I have to plug in the device, run smilerz script, supply the drive letter, run autosync, then disconnect. With this functionality, all I need to do is plug in the device, let it sync, unmount, and I'm good to go, with no additional intervention.
For example, I'd have this autoscript:
Sub OnStartup
Script.RegisterEvent SDB, "OnStartSync", "RunAutoScrobbler"
End Sub
Sub RunAutoScrobbler(deviceInfo)
<smilerz script here, but get drive letter from deviceInfo >
End Sub
Make sense? (if this is implemented .. it would make sense to have a OnStopSync event too, called after the sync but before the device unmounts).
A new ISDBApplicationEvents called OnStartSync
This event would be triggered when a device is synchronized. The registered event would block the sync, running a procedure. The sync will continue when the procedure has finished. OnStartSync would receive a parameter containing device information (at a minimum, a drive letter).
Specifically, I have a Sansa running Rockbox, and am using smilerz script to import playcounts to MM (http://mediamonkey.com/forum/viewtopic. ... ox#p153922). Then I have MM set up to sync unplayed podcasts .. deleting the rest. This way, after I listen to a podcast, scrobbler records that I listened to. When I autosync, I want to be able to run smilerz script prior to MM determining what to syncronize. Without this functionality, I have can't run autosync when I connect the device - I have to plug in the device, run smilerz script, supply the drive letter, run autosync, then disconnect. With this functionality, all I need to do is plug in the device, let it sync, unmount, and I'm good to go, with no additional intervention.
For example, I'd have this autoscript:
Sub OnStartup
Script.RegisterEvent SDB, "OnStartSync", "RunAutoScrobbler"
End Sub
Sub RunAutoScrobbler(deviceInfo)
<smilerz script here, but get drive letter from deviceInfo >
End Sub
Make sense? (if this is implemented .. it would make sense to have a OnStopSync event too, called after the sync but before the device unmounts).
Re: Scripting Functionality Thread (NO Script Requests Here!)
Hopefully this is already in and I just haven't been able to find it in the documentation, but it would be quite useful to have a player or application event for when a track finishes (Player.OnTrackFinished?) -- I'd like to have some post-play processing (e.g. for some custom counters/file reorganization), but haven't been able to find a way to do it without polling Player.isPlaying.
I had thought that OnStop would do the trick, but it doesn't seem to get thrown between tracks (although OnPlay does).
Does MM already have something like that (I'm at 3.0.3.1183), or could it be added?
I had thought that OnStop would do the trick, but it doesn't seem to get thrown between tracks (although OnPlay does).
Does MM already have something like that (I'm at 3.0.3.1183), or could it be added?