The code looks right. Not sure why its returning a 1 though. What is currentposition& defined as? I define mine as a long.
Wex
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
The code looks right. Not sure why its returning a 1 though. What is currentposition& defined as? I define mine as a long.
Wex
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