View Single Post
Old 3rd October 2009, 13:59   #3
rryk
Junior Member
 
Join Date: Oct 2009
Posts: 2
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.
rryk is offline   Reply With Quote