通过其Skype4COM.dll COM API控制的Skype [英] Controlling Skype via its Skype4COM.dll COM API

查看:928
本文介绍了通过其Skype4COM.dll COM API控制的Skype的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Sk​​ype4COM.dll COM API 使用C#工作,它非常适用于所有的通信功能我们需要的。我们正试图把一个更容易使用的界面上被烤到我们的应用程序的Skype上。

I'm working with the Skype4COM.dll COM API using C# and it works very well for all of the communication functionality we need. We are trying to put an easier to use interface on top of Skype that is baked into our application.

我的麻烦就在于控制或禁止Skype的Windows使用和不使用的。唯一的Skype窗口,我相信我会需要的是Skype视频电话/会议窗口。我想隐藏和控制Skype的可以提出其他所有窗口。我甚至想禁用来电对话窗口上来电弹出,因为我们将展示我们自己的答案提示。我很高兴,除了窗口管理API。

My trouble lies in controlling or disabling which Skype windows to use and not use. The only Skype window I believe I'll need is the Skype video phone/conference window. I would like to hide and control every other window that Skype can present. I would even like to disable the incoming call dialog window that pops up on incoming calls, since we'll be presenting our own answer prompt. I'm happy with the API except window management.

通过这个API,我可以看到如何启用Windows,但我似乎无法弄清楚如何将其隐藏,短黑客在Windows消息的Skype应用程序。我缺少的东西吗?

With the API, I can see how to enable Windows, but I can't seem to figure out how to hide them, short of hacking a windows message to the Skype app. Am I missing something?

你的帮助感谢,肯尼

推荐答案

了一下周围,我们发现,您可以通过

Poking around a bit we found that you can send 'Skype Commands' via

skypeobj.SendCommand ( Command cmd );

这是非常有效的大部分我们所需要的。这里是Skype的开发者网站一个参考:

That works pretty well for most of what we need. Here is a reference on the Skype developer site:

某些代码:

    void _SendSkypeCommand ( string cmdToSend )
    {
        Command cmdSkype = new Command ();
        cmdSkype.Blocking = true;
        cmdSkype.Timeout = 2000;
        cmdSkype.Command = cmdToSend;
        Trace.WriteLineIf ( _TracingDetailed, string.Format ( "skype command sent '{0}'", cmdToSend ) );
        _skype.SendCommand ( cmdSkype );
    }

    void _hideSkypeWindows ()
    {
        _SendSkypeCommand ( "SET SILENT_MODE ON" );
        _SendSkypeCommand ( "SET WINDOWSTATE HIDDEN" );
    }

这篇关于通过其Skype4COM.dll COM API控制的Skype的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆