右邊工作表按右鍵
選擇目標
選取com
找WindowsMediaPlayer
基本範例如下
If WindowsMediaPlayer1.playState = 0 Or WindowsMediaPlayer1.playState = 1 Then Select Case con Case 1 WindowsMediaPlayer1.URL = "C:\111.m3u" 直接開啟 Case 2 WindowsMediaPlayer1.URL = "C:\222.m3u" Case 3 WindowsMediaPlayer1.URL = "C:\333.m3u" End Select End If End Sub
全站熱搜