[英]How can I control an instance of Windows Media Player in c#?
I'm trying to control windows media player in c#. 我正在尝试在C#中控制Windows Media Player。 That means, I want to be able to programmically play songs. 这意味着,我希望能够以编程方式播放歌曲。 To reiterate, I'm talking about the full version of WMP, not the component you can embed into a windows form. 重申一下,我说的是WMP的完整版本,而不是您可以嵌入Windows窗体的组件。 I can launch the WMP process just fine, the problem comes in actually controlling it as I can't think of any keypresses I can send to the player that would tell it to select a song and play music. 我可以很好地启动WMP流程,问题出在实际控制它上,因为我想不出我可以发送给播放器的任何按键,告诉他们选择歌曲和播放音乐。 I can do this in iTunes just fine by sending a spacebar key-press to the process, but not so in Windows Media Player. 我可以在iTunes中做到这一点,只需向该过程发送一个空格键即可,但在Windows Media Player中则不能。 Does anyone have any ideas as per how I can control widows media player programmically in C#? 关于如何在C#中以编程方式控制寡妇媒体播放器,是否有人有任何想法? Is there a special command I can send to the process to complete this task? 我可以发送给流程以完成此任务的特殊命令吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.