sorry for this beginner question - but I don't know what's going on.
I tried to write a script which takes action every time a track stop for whatever reason. So I wrote an event handler for OnPlaybackEnd
But whenever I skip to the next track, I get the error 'Error executing script event / OLE error 800A01C2'.
I stripped it down to the bare basic but still see this error and have no idea why
Any thoughts? Tips?
Code: Select all
Option Explicit
Dim AppTitle : AppTitle = "MediaMonkeyTest"
Dim Version : Version = "1"
'---------------------
Sub OnStartup
Script.RegisterEvent SDB, "OnPlaybackEnd", "PlayerOnPlaybackEnd" 'When track don't play anymore
End Sub
Sub PlayerOnPlaybackEnd 'Track don't play anymore
MsgBox "OnPlayBackEnd"
End Sub