in reply to Copy text from a window

try guitest