View Single Post
Old 17th April 2001, 22:54   #12
]mAdMaTt[
Junior Member
 
Join Date: Apr 2001
Posts: 9
Send a message via ICQ to ]mAdMaTt[
thanks again for your help my plugin is now working just fine.

I use this method to detect a song change:

code:
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if(message == WM_SETTEXT)
if(SendMessage(plugin.hwndParent,WM_WA_IPC,0,IPC_ISPLAYING) == 1 || SendMessage(plugin.hwndParent,WM_WA_IPC,0,IPC_ISPLAYING) == 3)
sendSongName();

return CallWindowProc((WNDPROC)lpWndProcOld, hwnd, message, wParam, lParam);
}



but i'm curious and i like to see how your method works...
Quote:
subclass the playlist editor and catch WM_USER messages with wParam=666. This catches ALL song changes (x key, pressing play, clicking a new song, even dragging a file over winamp)
how do you do this ?
]mAdMaTt[ is offline   Reply With Quote