copytext ('gedit', 'txt0', 5,10)
This is to copy the text within the offset specified from the 'txt0' field into clipboard.