Messenger Plus! Live - Scripting Documentation

The ChatWnd object represents a chat window in Messenger. It is sent as parameter of OnEvent_ChatWnd* events and the collection of existing ChatWnd objects can be obtained through Messenger.CurrentChats.

Functions:

Name Description
EditText_SetCurSel Selects text in the typing area of the chat window.
EditText_ReplaceSel Replaces the text currently selected in the typing area by a new one.
EditText_GetCurSelStart Returns the index of the first character currently selected in the typing area.
EditText_GetCurSelEnd Returns the index following the last character currently selected in the typing area.
SendMessage Sends a message to the contacts currently present in the chat window.
SendFile Sends a file the current contact in the chat window.
AddContact Invites a contact to join the current conversation.
HistoryText_GetCurSelStart Returns the index of the first character currently selected in the message history area.
HistoryText_GetCurSelEnd Returns the index following the last character currently selected in the message history area.
HistoryText_GetTextRange Returns a portion of text from the message history area.
DisplayInfoMessage Displays a message in the "information area" of the chat window.
ResetInfoMessage Resets the message currently displayed in the "information area" of the chat window.

Properties:

Name Description
Handle Window's handle of the chat window.
EditChangeAllowed Specifies whether or not text can be entered in the typing area of the chat window.
Contacts List of contacts currently participating in the chat.
ChatLogEnabled "Logging" option of the chat window.
OverrideFmtEnabled "Override Contact's Font" option.
EditText Text in the typing area of the chat window.
IsMobileChat Indicates if the window represents a Mobile Device chat.