If statements using windows media player states

frozey

New member
Joined
Jun 27, 2011
Messages
2
Programming Experience
Beginner
I would like to run the following code:

If VideoPrompt.playState = WMPLib.WMPPlayState.wmppsStopped Then
MsgBox("test")
End If

However it does not appear to be working. Am I using this correctly? VideoPrompt is the name of the mediaplayer object btw.
 
Have you checked the value that is in the playState? Place a breakpoint there and get the value from the immediate window, or through the debugger. Then check the enums values and you should see what is not working.
 
Back
Top