Hey guys,
Sorry if my question sounds stupid, but do someone know how to grab winamp info?
I wana make an app for grabbing info from winamp player.
can someone help me plz?
EDIT:
well, i found something nd tryed to use it but it just not works...
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_USER = &H400
Private Const IPC_GETLISTPOS = 125
Private Sub Command1_Click()
Dim hwndWinamp As Long
Dim res
hwndWinamp = FindWindow("Winamp v1.x", vbNullString)
res = SendMessage(hwnd_winamp, WM_USER, 0, IPC_GETLISTPOS)
MsgBox res
End Sub
Sorry if my question sounds stupid, but do someone know how to grab winamp info?
I wana make an app for grabbing info from winamp player.
can someone help me plz?
EDIT:
well, i found something nd tryed to use it but it just not works...
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_USER = &H400
Private Const IPC_GETLISTPOS = 125
Private Sub Command1_Click()
Dim hwndWinamp As Long
Dim res
hwndWinamp = FindWindow("Winamp v1.x", vbNullString)
res = SendMessage(hwnd_winamp, WM_USER, 0, IPC_GETLISTPOS)
MsgBox res
End Sub
Last edited: