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