For the macro to work correctly, you need to put the chat opening on the mouse wheel, write the desired text, wait 10-13 seconds and run the macro.
Download the program (Download) and go to the macro editor
press the button «Open file»
and select the downloaded file
assign a macro to a key and run the program