Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stuffing keyboard buffer
Message
De
05/12/2002 05:28:03
 
 
À
05/12/2002 05:06:17
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00729802
Message ID:
00729806
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform