WLMConnection - Functions
The power of MessengerDiscovery is all based around the functions of this class.
Functions
SendMessage(strMessage, strFontName, strFontColorBGR, strFontEffect, strNickName, ToClient, ToServer)
Sends a fake (forced) Message to either the client or the server
strMessage (String) - The message you would like to send
strFontName (String) - The font used in the message (not URL encoded)
strFontColorBGR (String) - The font color in the message (Hex BGR encoded, without "#")
strFontEffect (String) - The font effect used in the message. It is a combination of "B" (bold), "I" (italic), "U" (Underline). For eample "BI" - the font will be bold and italic.
strNickName (String) - The name you want to show the message as sent by
ToClient (Boolean) - If True the message is sent to the client (user)
ToServer (Boolean) - If True the message is sent to the server (contact)
The following functions are for advance users who understand the MessengerProtocol
ClientWriteLine(strData)
Writes a command line to the connection of Windows Live Messenger client.
strData (String) - The data (command) you wish to send. MessengerDiscovery adds the vbCrLf for you.
ClientWriteBytes(bBytes())
Writes an array of bytes to the connection of Windows Live Messenger client.
bBytes (Byte array) - Array of payload bytes you wish to send to client. Must be preceeded by ClientWriteBytes to describe the bytes to the client.
ServerWriteLine(strData)
Writes a command line to the connection of Windows Live Messenger server.
strData (String) - The data (command) you wish to send. MessengerDiscovery adds the vbCrLf for you.
ServerWriteBytes(bBytes())
Writes an array of bytes to the connection of Windows Live Messenger server.
bBytes (Byte array) - Array of payload bytes you wish to send to server. Must be preceeded by ServerWriteLine to describe the bytes to the server.