Capturing Mouse Messages in Background Plugin
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Capturing Mouse Messages in Background Plugin

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Christian Geschkat
Guest





Posted: Mon Jan 31, 2005 6:03 pm    Post subject: Capturing Mouse Messages in Background Plugin Reply with quote

Hi,

I created a background plugin with the Windows Media Player 10 SDK in order
to capture the mouse movements and keystrokes of the media player or to be
more precise of the mouse movement over the video window. But the events are
never sent through to the plugin. Am I right to assume that this is on
purpose?
Is there another way for me to capture these events via a plugin or do I
have to capture these manually from an outside application and hooking to the
message queue of the VideoWindow?

Thanks and regards

Christian Geschkat

Back to top
vince price
Guest





Posted: Mon Jan 31, 2005 7:10 pm    Post subject: Re: Capturing Mouse Messages in Background Plugin Reply with quote

The only way I have been able to do this is to actually hook the windows
proc... The most challenging part is to actually find the desired
window. Spy can help characterize the window parent hierarchy for you.
Also be aware that changing views in WMP often destroys the window of
interest so you often have to monitor for the presence of the window and
unhook and re-hook it when it reappears.

Vince.
Back to top
Christian Geschkat
Guest





Posted: Wed Feb 02, 2005 6:11 pm    Post subject: Re: Capturing Mouse Messages in Background Plugin Reply with quote

Thanks for your help,

what you describe seems to be the only viable option for handling user input
over the video window. I think you can get a handle to the video window by
querying the IVideoWindow interface from the DirectShow graph and calling
get_Owner() on that interface.

Christian Geschkat

Back to top
xzsong



Joined: 24 Jan 2006
Posts: 1

Posted: Tue Jan 24, 2006 3:01 am    Post subject: How? Reply with quote

But the problem is how can we get the IVideoWindow from Windows Media Player Plugin?
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB