Spencer,
This worded for me in VFP 7 on Win2K Pro SP2. I created a program (called Keytest.prg) and put your code in it. I then issued an ON KEY LABEL Shift+F12 do keytest. I brought up another program in the Editor and pressed Shift+F12 and the entire window was in the clipboard.
Is your situation different? If so, how so?
>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!
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao