|
|
#1 |
|
Registered User
Join Date: Jun 2002
Posts: 2
|
how to receive Winamp command message?
Hello,
I would like to develop a general purpose plug-in. I would like to intercept Winamp message, i.e. for ex. when user push the Play button, my plugin will execute "void myFunction()". I have downloaded gen_test4 project from this forum (thanks to the authors). I have tried to do this, as I have read in MSDN: in gen_test4.h: class CGen_test4App : public CWinApp { public: BEGIN_MSG_MAP( CGen_test4App ) MESSAGE_HANDLER(40045, myFunction) END_MSG_MAP() ...} in gen_test4.cpp BEGIN_MESSAGE_MAP(CGen_test4App, CWinApp) //{{AFX_MSG_MAP(CGen_test4App) //}}AFX_MSG_MAP ON_COMMAND (40045, myFunction) END_MESSAGE_MAP() afx_msg void CGen_test4App::test (void) { AfxMessageBox ("test"); } But this doesn't make anything. The DLL don't intercept the Play message command. Could anybody explain me how to intercept messages from Winamp? Thanks a lot. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2002
Posts: 33
|
You would have to subclass the winamp window(s). Here's some source code to a plugin I was making that I never finished. Commented a revised just for you! (To make it simpler.) Therefore I don't guarantee that it will compile, but if you study it you should figure how to do what you want.
code: That should do it. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|