print #handle, "!copy" ;
This command causes the currently selected text to be copied to the WINDOWS clipboard.

print #handle, "!cut" ;
This command causes the currently selected text to be cut out of the text window and copied to the WINDOWS clipboard.

print #handle, "!paste" ;
This causes the text in the WINDOWS clipboard (if there is any) to be pasted into the text window at the current cursor position.

print #handle, "!selectall" ;
This causes everything in the text window to be selected (highlighted).