Click to See Complete Forum and Search --> : Controlling Media Player from another program


ldor
October 5th, 2005, 07:45 AM
Hi everybody,

I want to call Windows Media Player from my own program to play multimedia files. That's of course very easy, it's enough to call CreateProcess() function. But then I want to control Media Player from my program: sending comands to start, pause and stop playing. I guess, it should be sufficient to learn the handles of corresponding buttons in Media Player. Then one could just send WM_LBUTTONDOWN message to the corresponding window to immitate the button being pressed by mouse. Does anybody know how to find these handles, or any other solution?

I want to do this with built-in Media Player (mplayer2.exe), not with Media Player 9.

Thank you all for any suggestions

Lev

PeejAvery
October 6th, 2005, 09:32 PM
Do you want to make a remote to Windows Media or an actually player like Media player?

If you want a player then Visual Basic can use the Windows Media OCX control to act just like Media Player.