AIMP Forum

AIMP для Windows => Дополнения (Plugins / Skins) => Плагины => Topic started by: tmontney on November 24, 2015, 01:40:52

Title: Querying AIMP for music info
Post by: tmontney on November 24, 2015, 01:40:52
I'm not sure if this already exists, but I can't find anything regarding it. If it doesn't, how would I go about creating an add-on? All I see are topics regarding installing, using, and finding add-ons. To give an example, I'd like something similar to iTunesLib.

Code: [Select]
    Public Sub New()
        iTunesApplication = New iTunesLib.iTunesApp
        AddHandler iTunesApplication.OnPlayerPlayEvent, AddressOf Track_Played
    End Sub

    Private Sub Track_Played(ByVal sender As Object) Handles iTunesApplication.OnPlayerPlayEvent
        Dim artist As String = iTunesApplication.CurrentTrack.Artist
    End Sub

    Public Sub Dispose()
        RemoveHandler iTunesApplication.OnPlayerPlayEvent, AddressOf Track_Played
        Runtime.InteropServices.Marshal.ReleaseComObject(iTunesApplication)
        System.GC.Collect()
        iTunesApplication = Nothing
    End Sub
Title: Re: Querying AIMP for music info
Post by: Artem on November 24, 2015, 09:22:35
https://www.aimp.ru/index.php?do=download&cat=sdk