The below is what I settled on and it works great.



use Win32::GuiTest qw(SendKeys);


sub Copy_Click {




-----Original Message-----
From: Eric Hansen []
Sent: Monday, August 30, 2004 1:49 PM
To: ''
Subject: Richg Edit Text Capture (selected text)


There definitely seems to be a problem getting selected

Text out of a rich edit control.  We need syntax of below nature

(Or something simple) for an application to be built with a menu option

Edit->Copy for getting the selected text into the Windows Clipboard.    


$Clip = Win32::Clipboard;

($x,$y) - $RichEdit->Selection();

$text = $RichEdit->Text([$x$,y]);



Eric, Garland, Texas