Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stuffing keyboard buffer
Message
From
05/12/2002 05:28:03
 
 
To
05/12/2002 05:06:17
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00729802
Message ID:
00729806
Views:
12
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform