What trigger event should I use in VBScript?
Where can I see a list of events generated by MM?
I'm using Notepad++ as my IDE.
The long term plan for my addon is to add a Genre "Workout" to the Now Playing song. This way I can later sync individually chosen tracks to my phone for exercise listening. Better than syncing whole albums to the phone if I only really enjoy 1 or 2 tracks from that album.
Right now I want the panel to show me if the currently playing song already contains the "Workout" genre, then I can add it or delete it by clicking on the checkbox in the panel.
Hopefully I can build up a list of really motivational songs to help with exercise
Code: Select all
Sub OnSelection
'read Genres and populate on Panel
'onselect and onsongchange
' Lbl.Caption = "Selected tracks: " & SDB.CurrentSongList.Count
Lbl.Caption = "Current Song: " & SDB.Player.CurrentSong.Title
ChB.Checked = CBool(InStr(SDB.Player.CurrentSong.Genre, ChB.Caption))
' ChB.Checked = not chb.checked
End Sub