Skip to content
⌘ NSIS Forum Archive

sendMessage to winamp

7 posts

martin.deimos#

sendMessage to winamp

i want to send the following WM_USER message to winamp:
part of wa_ipc.h:
#define IPC_GETRATING 640 
/* (requires Winamp 5.04+ with ML)
** SendMessage(hwnd_winamp,WM_WA_IPC,0,IPC_GETRATING);
** returns the current item's rating
*/ 
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#
Simply replace the parameters for SendMessage. Instead of sending the close message, send the message you need.
martin.deimos#
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#
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#
ok everything works!
another question: what message must i send to recieve the rating of the current playlist item?