Winamp and Visual Basic
Posted on 2001-08-17
Okay Im writing a little interface program for winamp w/VB. I have been to their develpoer forums and no one seems to know why this code doesn't work.
Ok, this is a snippet of my code fom VB...
==========================================================Private Const WM_USER = &H400
Private Const MODE = 1
Private Const IPC_GETTIME = 105
Dim s as Long
Private Sub Command6_Click()
s = SendMessage(hwndWinamp, WM_USER, MODE, IPC_GETTIME)
==========================================================This code is supposed to return the current songs position
in seconds. The only value it ever returns is 1. It will not give time in Seconds. Just a value of one. Does anybody see anything wrong or suggest anything. ( I use findwindow API to get the Hwnd of Winamp.)