sendMessageToUser


sendMessageToUser (user_name, message)

Sends the message to the viewer where user_name is logged in. If the parameter is a message (from createMessage) it is used as is. Otherwise, the parameter is converted to a string and used as the text of the message, with CYAN as the default color.

Related topic

Parameters:

user_name

The user to receive the message.

message

The message to send, or the text of the message to send.

Returns:

This function does not return a value.

Example:

helloMsg = createMessage("Hello, McGintey!")

helloMsg.COLOR = YELLOW

sendMessageToUser("mcgintey", helloMsg)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*