View Single Post
Old 16th July 2010, 08:20   #3
cheezewizz
Junior Member
 
Join Date: Jul 2010
Posts: 1
use the callback messages which are sent on status change instead. for example
code:
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
if((lParam == IPC_CB_MISC && wParam == IPC_CB_MISC_STATUS))
{
int status = SendMessage(plugin.hwndParent, WM_WA_IPC, 0, IPC_ISPLAYING);
switch(status)
{
case 0:
//not playing
break;
case 1:
//playing
break;
case 3:
//paused
break;
}
}
int ret = CallWindowProc(lpWndProcOld, hwnd, message, wParam, lParam);
return ret;
}


the playing one will be sent whenever you hit play/next track etc...
cheezewizz is offline   Reply With Quote