martin.deimos
10th May 2006 08:11 UTC
sendMessage to winamp
i want to send the following WM_USER message to winamp:
part of wa_ipc.h:
#defineIPC_GETRATING640
/*(requiresWinamp5.04+withML)
**SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETRATING);
**returnsthecurrentitem'srating
*/
WM_WA_IPC is the same as WM_USER (#define WM_WA_IPC WM_USER)
here is an attatched file, how can i do this?
ps: just delete the unneccessary stuff
kichik
10th May 2006 08:31 UTC
Simply replace the parameters for SendMessage. Instead of sending the close message, send the message you need.
martin.deimos
10th May 2006 13:29 UTC
here is what i have done until now...
the code is also cleared
but it only returns 20513
and it should return a value 0-5 according to the rating of the current playing media
did i something wrong?
DrO
10th May 2006 19:02 UTC
the problem is you're not sending the right parameters and it should be SendMessage $2 ${WM_USER} 0 640 $dum /TIMEOUT=100 . what you were sending had the lparam as zero which returns the winamp version (0x5021 which is 20513 in decimal :) )
-daz
martin.deimos
11th May 2006 12:29 UTC
ah, thanks!but i have winamp 5.21 not 5.13?!
will try out when i'm @ home
martin.deimos
11th May 2006 12:33 UTC
oops,sorry i havn't read how to convert!
martin.deimos
13th May 2006 19:35 UTC
ok everything works!
another question: what message must i send to recieve the rating of the current playlist item?