Copy text from start_pos up to, but not including end_pos to the clipboard.
start position
end position
Copy text from start_pos up to, but not including end_pos to the clipboard.