>Hi all,
>I'm trying to use VFP to simulate someone keying in the Enter key into another program running on the same machine.
>Tried the keyboard function but the keys entered are into the VFP program session and not to the other program running in the background.
>Is that anyway to do this?
Yes - use the WSH Wscript.Shell object - have it select the application using its AppActivate method, and then send keystrokes via the object's SendKeys method.