Rufen Sie uns an: +1-877-99-BOPUP

IServerClientVBA::SendMessageTypingEvent method

Sends an instant notification to a remote user if message for him is being typed. The recipient will receive and see "User is typing message..." or other similar notification event in his IM client.

Public Sub SendMessageTypingEvent(     ByRef MessageTypingPtr As Long,     ByRef ResultCode As Long )

Parameters

MessageTypingPtr
[in] A pointer to a variable of MessageTypingStruct type that contains information on the instant notification. To retrieve a pointer to a variable use VarPtr() function.
ResultCode
[out] Variable of Long type that gets an extended code if error result is returned. For available codes see Available Extended Codes topic.

Return Value

S_OK
The function was successful. Check ResultCode variable to get extended information.
E_INVALIDARG
One or more arguments are incorrect.
E_FAIL
Some error occurred in the function. Check ResultCode variable to get extended information on the error.

Remarks

Delivery of message typing event can be disabled on the IM server so it is required to check that SessionFlag.SessionFlag_TypingEventDisabled flag is not set returned by IServerClientVBA::GetAccountInformation function.
It is recommended to send a message typing event for each recipient no more than once every 3 seconds to do not overload the IM server with such unused requests and data.