This just basically tell you if WMP is loaded then if it is playing a song and if it is what song. This might not work with some WMP versions i haven't tested with 11.0 but it might.

VB Code:
  1. Option Explicit
  2. Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
  3. Public Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
  4. Public Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
  5.  
  6.  
  7. Public Function strGetText(lngHwnd As Long) As String
  8. Dim ilngLength As Long
  9. Dim strBuffer  As String
  10.  
  11.     ilngLength = SendMessageLong(lngHwnd, &HE, 0, 0)
  12.     strBuffer = String$(ilngLength, 0)
  13.     SendMessageByString lngHwnd, &HD, ilngLength + 1, strBuffer
  14.     strGetText = strBuffer
  15. Exit Function
  16.  
  17.     Resume Next
  18. End Function
  19.  
  20.  
  21. Public Function getWMPT() As String
  22. Dim stringtxt As String
  23. Dim wmplng As Long
  24.  
  25.  wmplng = FindWindow("WMPlayerAPP", vbNullString)
  26.  
  27.  If wmplng = 0 Then
  28.  getWMPT = "WMP is not loaded currently"
  29.  Else
  30.  stringtxt = strGetText(wmplng)
  31.  
  32.  If stringtxt = "Windows Media Player" Then
  33.  getWMPT = "No Song is currently being played"
  34.  Else
  35.  stringtxt = wmplng
  36.  getWMPT = Trim$(Left$(stringtxt, InStr(1, stringtxt, " - Windows Media Player")))
  37.  
  38.  End If
  39.  End If
  40.  
  41.     Exit Function
  42.     Resume Next
  43.        
  44. End Function