Thank you, Ed. I should have considered WSH to begin with. Thanks for setting me straight.
>>I'd like to send a carriage return to another application's pop-up window from VFP.
>> (snip)
>If you have the hWnd of the other form, you can direct a keystroke to it using the SendMessage() API call, discussed in the API section here on UT.
>
>If you know the Window title, or a part of it, for the other app's pop-up window, it's really trivial to do using the Wscript.Shell's AppActivate() and SendKeys() methods:
>
>
oShell = CREATEOBJ('Wscript.Shell')
>oShell.AppActivate("The popup menu title")
>oShell.SendKeys('{Enter}')
>oShell = NULL
Paul M.
MCSE/MCSA/MCT/MCP+I, A+, Network+, I-Net+
Nil carborundum illegitimi.