this code appears to work consistantly on several configurations:
on key lable f12 do control_c
program Control_c
keyboard "{ctrl+home}"
doevents
keyboard "{ctrl+A}"
doevents
keyboard "{ctrl+c}"
wait 'x' window AT -20, -50 nowait
keyboard "{ctrl+end}"
Give it a try on your system
Glenn
>Hi all,
>
>In VFP 6 the following executed in the VFP editor with an ON KEY LABEL would capture the editor's current window's text to the clipboard.
>
>Now under VFP 7 I am unable to capture any of the text to the clipboard.
>
>
>keyboard "{Ctrl+A}"
>for iTry = 1 To 5
> DoEvents
>next iTry
>
>keyboard "{Ctrl+C}"
>for iTry = 1 To 5
> DoEvents
>next iTry
>
>
>Something has changed. BTW, I'm using Windows 2000, SP2.
>
>Can someone more knowledgeable than me suggest a workaround? I really want this functionality back but am stumped! Thanks in advance!