def send_string_clipboard(self, string: str, paste_command: model.SendMode):
logger.debug("<STR_LIT>" + string)<EOL>if common.USING_QT:<EOL><INDENT>if paste_command is None:<EOL><INDENT>self.__enqueue(self.app.exec_in_main, self._send_string_selection, string)<EOL><DEDENT>else:<EOL><INDENT>self.__enqueue(self.app.exec_in_main, self._send_string_clipboard, string, paste_command)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if paste_command is None:<EOL><INDENT>self.__enqueue(self._send_string_selection, string)<EOL><DEDENT>else:<EOL><INDENT>self.__enqueue(self._send_string_clipboard, string, paste_command)<EOL><DEDENT><DEDENT>logger.debug("<STR_LIT>")<EOL>
This method is called from the IoMediator for Phrase expansion using one of the clipboard method.
:param string: The to-be pasted string
:param paste_command: Optional paste command. If None, the mouse selection is used. Otherwise, it contains a
 keyboard combination string, like '<ctrl>+v', or '<shift>+<insert>' that is sent to the target application,
 causing a paste operation to happen.