Results 1 to 3 of 3

Thread: VB Code problems

  1. #1
    Newbie
    Join Date
    Apr 2000
    Location
    Arroyo Grande, CA
    Posts
    21

    Post VB Code problems

    I'm trying to write a plug-in for Winamp which will save the current song and position of the song when the power is shut off to the PC. But my code isn't working. After using FindWindow to locate Winamp, I try to use SendMessage in the following code:

    currentposition& = SendMessage(winamp&, WM_USER, 0, 105)

    This is supposed to return the current position of the track playing in milliseconds. The problem is, everytime I try this it always returns 1.

    Anyone know what the prob might be?

    Thanks,
    Marlin

  2. #2
    Newbie
    Join Date
    Sep 1999
    Posts
    11

    Post

    The code looks right. Not sure why its returning a 1 though. What is currentposition& defined as? I define mine as a long.

    Wex

  3. #3
    FLAC
    Join Date
    Aug 1999
    Location
    Upper Marlboro, MD 20772
    Posts
    1,311

    Post

    phacade GXS:

    double check the handle to winamp. That code should have worked cuz i do the same thing, but my code is in c/c++

    abcd-1
    abcd-1
    Author of CobraI,II,III and now CobraIV.
    You can contact me on AOL instant messenger....nick is cenwesi or cenwesi3

Bookmarks

Posting Permissions

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