Scripting Functionality Thread (NO Script Requests Here!)

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderatori: Peke, Gurus

Fellow scripters/coders/...: Do you feel the need for a wishlist for enhanced scripting functionality?

Puoi scegliere tra 1

 
 
Guarda risultati

baker
Messaggi: 30
Iscritto il: gio dic 20, 2007 1:20 pm

Messaggio da baker »

If possible, please add the search box to MM's scripting methods as per..

http://www.mediamonkey.com/forum/viewtopic.php?t=24681

Thx!
DaledeSilva
Messaggi: 906
Iscritto il: dom mag 28, 2006 4:22 am

Messaggio da DaledeSilva »

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.
Product Designer & Indie Developer.
Building at the intersection of motion, art, and code.
Find me on twitter and all the other ones here.
MoDementia
Messaggi: 1321
Iscritto il: gio giu 15, 2006 3:26 pm

OnTrackDeleted

Messaggio da MoDementia »

Please :)

Sub OnTrackDeleted(DeletedTrack As SDBSongData, 0=Deleted from Library 1=Deleted from Library and Computer.)
MoDementia
Messaggi: 1321
Iscritto il: gio giu 15, 2006 3:26 pm

OnTrackProperties column selection

Messaggio da MoDementia »

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.
MoDementia
Messaggi: 1321
Iscritto il: gio giu 15, 2006 3:26 pm

Messaggio da MoDementia »

OnChangedFilter(OldFilterIndex,NewFilterIndex)

No specific application yet....
I'm sure if it was available we would find a use for it :)
ZvezdanD
Messaggi: 3270
Iscritto il: gio giu 08, 2006 7:40 pm

Messaggio da ZvezdanD »

MoDementia ha scritto:OnChangedFilter(OldFilterIndex,NewFilterIndex)

No specific application yet....
I'm sure if it was available we would find a use for it :)
I already need this (and asked for it):
http://www.mediamonkey.com/forum/viewto ... 602#128602
geirmala
Messaggi: 1
Iscritto il: dom mag 11, 2008 2:57 am

Wawi functionality

Messaggio da geirmala »

Would it be possible to implement functionalit such as Wawi web interface?
MoDementia
Messaggi: 1321
Iscritto il: gio giu 15, 2006 3:26 pm

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da MoDementia »

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.

Codice: Seleziona tutto

FROM Songs WHERE Songs.ID = 9651 AND  (Songs.PlayCounter>=1 OR Songs.LastTimePlayed<(39639.589950266))  
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
trixmoto
Messaggi: 10024
Iscritto il: ven ago 26, 2005 3:28 am

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da trixmoto »

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.
stax76
Messaggi: 176
Iscritto il: dom mar 12, 2006 6:45 am

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da stax76 »

I've a extension done with VB .NET, it adds support for the MCE remote, I noticed there is no way to toggle mute.
Rich66
Messaggi: 1
Iscritto il: dom ago 03, 2008 8:37 am

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da Rich66 »

MoDementia ha scritto:Method for translating autoplaylist querydata into SQL and vice versa.
I also support this request. :)

I think it would be good to have a function like:

Codice: Seleziona tutto

Function SDBDatabase.GetPlaylistQuery(ID As Integer) As String
It would work in the same way as GetFilterQuery() but for an auto-playlist.

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.
MoDementia
Messaggi: 1321
Iscritto il: gio giu 15, 2006 3:26 pm

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da MoDementia »

stax ha scritto:I've a extension done with VB .NET, it adds support for the MCE remote, I noticed there is no way to toggle mute.
Save the current volume
set volume to 0
restore saved volume.
Peke
Messaggi: 18408
Iscritto il: mar giu 10, 2003 7:21 pm

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da Peke »

While I was making small testing Script I noticed that we are missing:

Codice: Seleziona tutto

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
Immagine
Immagine
Immagine
How to attach PICTURE/SCREENSHOTS to forum posts
caasland
Messaggi: 8
Iscritto il: lun gen 14, 2008 4:18 pm

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da caasland »

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

Re: Scripting Functionality Thread (NO Script Requests Here!)

Messaggio da PartialGestalt »

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?
Rispondi