1
Плагины / Plugins / Querying AIMP for music info
« : Ноября 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.
Код: [Выделить]
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