Is there a way to get the playback position of winamp? Im not up to make a plugin, rather a independent prog, that reads winamp. But if you know how to make a plugin, that's the bonus qwestion.
Printable View
Is there a way to get the playback position of winamp? Im not up to make a plugin, rather a independent prog, that reads winamp. But if you know how to make a plugin, that's the bonus qwestion.
here is the link to VB-Amp maybe you'll find somthing usefull there (open source)
http://www.ryerson.ca/~sgray
-Lumin
[Edited by lumin on 03-24-2000 at 05:56 AM]
Here is some code from a program I am writing
' SendMessage To Window (waits for reply)
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal WndID As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lparam As Long) As Long
Public Const WM_WA_IPC = &H400
Public Sub GetWinamphWnd()
'Gets Winamps hWnd
WinamphWnd = FindWindow("Winamp v1.x", 0)
End Sub
Case "POS"
SongPos = SendMessage(WinamphWnd, WM_WA_IPC, 0, 105)
Also here is info strait from nullsoft
http://www.winamp.com/nsdn/plugindev/speaking.jhtml
If you want to stay original, try messing around with the MMControl, DirectSound, and the CommonDialog controls. They basically support almost everything, but I admit Winamp is one heck of a media player. Since when could you do plug-ins in VB? Sounds interesting...
Wow! Thanks Technocrat. I checked out winamps homepage and, it shows that they have been working on how to control winamp. I was trying to do this earlier, when they had about winamp 2.03 but nullsoft favoured C++ in doing plugins. Now there's a bunch of ways. I expected DDE or other hard stuff but SendMessage sounds easy.
Thanks again!
Not a problem
Glad I can finally give something back to this board :)
I can get all of those commands to work except the call to find what skin is loaded and getting songs in the queue correctly. Every once and awhile when I send songs to the queue it puts them in a different order than I sent them. Let me know if you have the same problem and if you fixed it.
Thanks