code:
function OnEvent_MyMediaChange(NewMedia) {
var BlankMedia = "\\0Music\\00\\0\\0\\0\\0\\0\\0";
if(NewMedia == "" || NewMedia == BlankMedia) {
Debug.Trace("Media is now off.");
} else if(Messenger.MyCurrentMedia == "" || Messenger.MyCurrentMedia == BlankMedia) {
Debug.Trace("Media is now on.");
}
}
Be aware that this event often contains a slight delay from when the media appears to be updated.
I hope this is what you wanted. This will catch when your media turns on, and when your media turns off, but
not when your media changes.