Results 1 to 6 of 6

Thread: Winamp > VB

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143
    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]

  3. #3
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Posts
    30
    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...

  5. #5

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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!

  6. #6
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width