barrytraver
Programmer
Why does the following code work to make a *.MID or *.MP3 file repeat automatically, even if MMControl1.Notify is set to False?
Private Sub MMControl1_Done(NotifyCode As Integer)
Debug.Print "MMControl1.Notify: "; MMControl1.Notify
If NotifyCode = 1 Then
If MMControl1.Command = "Play" Then
MMControl1.Command = "Close": DoEvents
MMControl1.Command = "Open": DoEvents
MMControl1.Command = "Play": DoEvents
End If
End If
End Sub
Yes, it should work if MMControl1.Notify is set to True, BUT how come it also works when MMControl1.Notify is set to False?? (I thought the MMControl_Done() event fired only if MMControl1.Notify was set to True.)
Anyone have an explanation for this? Do I not understand correctly the purpose of MMControl1.Notify?
Private Sub MMControl1_Done(NotifyCode As Integer)
Debug.Print "MMControl1.Notify: "; MMControl1.Notify
If NotifyCode = 1 Then
If MMControl1.Command = "Play" Then
MMControl1.Command = "Close": DoEvents
MMControl1.Command = "Open": DoEvents
MMControl1.Command = "Play": DoEvents
End If
End If
End Sub
Yes, it should work if MMControl1.Notify is set to True, BUT how come it also works when MMControl1.Notify is set to False?? (I thought the MMControl_Done() event fired only if MMControl1.Notify was set to True.)
Anyone have an explanation for this? Do I not understand correctly the purpose of MMControl1.Notify?