Skype - 如何开始?
我花了很多时间。整个 Skype 论坛似乎已经崩溃或死亡,或者他们没有技术人员来处理这些部门。
入门代码示例无法正常工作或不可用(完全异常)。例如: http://forum.skype.com/index.php?showtopic=3557< /a>
因此,我请求有人向我展示一个简单的 C# 工作代码示例,说明如何逐步开始。
提前致谢。
I spend lot of time. And the whole Skype forum seems broken or dead or they don't have technical guys to handle those sectors.
Getting started code examples are not working or not available (completely abnormal). ex: http://forum.skype.com/index.php?showtopic=3557
Therefore, i request can someone kindly please show me a simple C# working code example how to just get started step by step.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
代码(包括 using SKYPE4COMLib;,它搞砸了 stackoverflow 语法突出显示)
code (include using SKYPE4COMLib;, it screws up stackoverflow syntax highlighting)
除了 jgauffin 所说的之外,这是我曾经使用的(单例)包装类(C# 3):
如果您愿意,可以扩展它,甚至可以将其发布回此处(如果您愿意)。
一般用法:
启动 Skype
注册一些事件
,例如:
如您所见,有一些辅助扩展方法来获取图像索引、状态消息文本(需要本地化)等。
设置我的状态
与 jgauffin 相比,我编写的包装器不会修改任何内容,除了状态之外只是只读的。
最后,还有一个部署小问题:您必须将可执行文件编译为 x86,SKYPE4COMLib 才能正常工作。 IIRC 这无论如何都适用于所有 COM 互操作程序集。
如果您有疑问,请随时询问。
In addition to what jgauffin said, here's the (singleton) wrapper class that I used to use (C# 3):
If you wish, extend it and maybe even post it back here if you want to.
Genaral usage:
Starting Skype
Registering for some events
where, for example:
As you can see there are some auxiliary extension methods to get image indices, status message texts (that need to be localized) and so on.
Setting my status
In contrast to jgauffin, the wrapper I wrote does not modify anything, just read-only except for the status.
Finally, one small deployment issue: You must compile the executable to x86 for the SKYPE4COMLib to work correctly. IIRC this applies to all COM interop assemblies anyway.
Feel free to ask, if you have questions.
自从 Microsoft 收购 Skype 以来,Skype API 已被弃用。您无法在新的群聊中使用它。
Since Microsoft bought Skype the Skype API is deprecated. You can't use it on new group chats.
试试这个: http://forum.skype.com/index.php?showtopic=142821< /a>
Try This: http://forum.skype.com/index.php?showtopic=142821