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
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