发送命令以打开程序 [英] Send a command to open program
问题描述
大家好。这是我在MSDN中的第一个问题,我不知道它到底是不是正确的地方。
Hello everyone. This is my first ask in MSDN, and I don't know exactly if it's the right place.
所以,问:我需要制作一个程序来接收来自其他程序的命令,没有重新启动主,就像在Músic中播放或暂停一首歌或在Steam中打开游戏的命令。
So, the ask: I need to make a program that receives commands from other program, without restart the main, like a command to play or pause a song in the Músic or open a game in Steam.
示例:" steam:// rungameid / 000000 "
Example: "steam://rungameid/000000"
此问题的任何想法或解决方案?我感谢你的回复。
Any ideas or solutions for this ask? I thank you for your reply.
PS:我还在训练我的英语。所以如果有很多错误,请忽略它,或者帮助我变得更好。
PS.: I'm still training my english. So if have a lot mistakes, ignore it, or help me get better.
推荐答案
你好AlesonTalis,
Hi AlesonTalis,
>> 我需要制作一个程序来接收来自其他程序的命令,而无需重新启动主程序,例如在Músic中播放或暂停歌曲的命令或打开游戏在Steam中。
>> I need to make a program that receives commands from other program, without restart the main, like a command to play or pause a song in the Músic or open a game in Steam.
您似乎可以创建一个WCF来实现它。其他程序使用您的WCF应用程序,并在执行命令时向您发送命令名称。
It seems that you could create a WCF to achieve it. Other program consume your WCF application and send you the command name when it execute a command.
有关WCF的更多信息,请参阅:
For more information about WCF, please refer to:
https://docs.microsoft.com/en-us/dotnet/framework/wcf/getting-started-tutorial
祝你好运,
张龙
这篇关于发送命令以打开程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!