如何使用通信自动化API捕获传入消息 [英] How to catch an incoming message using communication automation API

查看:81
本文介绍了如何使用通信自动化API捕获传入消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在编写一个客户端,用于向通信器上的联系人发送和接收消息(使用SIP ID)。

I am writing a client which sends and receive messages to a contact on communicator (using SIP id).

发送工作正常。我在Communicator自动化API中使用SendText函数,但是我找不到任何侦听传入对话的事件!那么我如何通知我收到了一条消息?我概述了通信器API,并没有找到有关接收消息的
,但是在API中包含此功能似乎没有道理。谢谢你的帮助。

Sending worked fine. I am using the SendText function in Communicator automation API, however I didnt find any event which listens to an incoming conversation! So how am I notified that I received a message? I overviews the communicator API, and didnt find anything about receiving a message, however it doesnt seem logical not to include this functionality in the API. Thanks for your help.

谢谢,

Keren

推荐答案

是否逻辑(并且不是:-))现有对话窗口中没有传入消息的事件。 您需要使用"历史记录"进行轮询。对话窗口上的方法处理并跟踪自己的变化。

Logical or not (and it's not :-) ) there is no event for incoming messages in an existing conversation window.  You will need to poll using the "History" method on the Conversation Window handle and track the changes your self.

 

 


这篇关于如何使用通信自动化API捕获传入消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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