Thanks a lot. I managed to register the message, post and receive it back after loading. I also managed to get playlist window handle. The only thing I am still missing is "Randomize playlist" menu option id.
PostMessage((IntPtr)hWnd, WM_COMMAND, 0, ID_MENU_ITEM);
How do I get ID_MENU_ITEM?
Update: I subclassed playlist window and experimentally found out that correct id for randomization menu item is 40212. Thank you. Now it works.
Last edited by rryk; 3rd October 2009 at 14:20.
|