Archive: sendMessage to winamp


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

Simply replace the parameters for SendMessage. Instead of sending the close message, send the message you need.


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?


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


ah, thanks!but i have winamp 5.21 not 5.13?!
will try out when i'm @ home


oops,sorry i havn't read how to convert!


ok everything works!
another question: what message must i send to recieve the rating of the current playlist item?