To use this macro, you need to insert two characters at the end of your message, send a message to the chat, and then run the macro with a closed chat. This will allow the macro to correctly identify the end of the message and perform the necessary actions.