INTERACT FORUM

Windows => Plug-in Development => Topic started by: Zoner on July 04, 2004, 07:31:56 pm

Title: How to use the messaging interface
Post by: Zoner on July 04, 2004, 07:31:56 pm
Maybe I'm the only stupid one around here, but I just spent several hours trying to decrypt the instructions in mccommands.h and use the messaging interface.  IMHO a few more examples are definitely needed in there.  Here is how it works:

HWND MCWindow = FindWindow("MJFrame", NULL);
PostMessage(MCWindow, Command, MAKE_MCC_PLAYBACK_PARAM(Parameter, Zone));

Very simple, but it took me hours to work that out.  I had initially thought that you were supposed to OR the command and the param/zone together.