pastetext ('gedit', 'txtName', 1)
This is to paste the text from the position specified in the 'txtName' field.