Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DDE & Key strokes
Message
De
08/07/2000 00:56:48
 
 
À
07/07/2000 19:35:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00389752
Message ID:
00389784
Vues:
17
>I am trying to communicate with a Visual Foxpro application and I need to emulate the ALT + other keys to open certain menus and navigate through the application without the use of the mouse.

Are you referring to Visual FoxPro or an application built with Visual FoxPro?

>I connect to Visual Foxpro through DDE commands being FoxPro the client. I need to know if:

DDE?......Yuk...(gag)

>1) Visual Foxpro accepts ASCII values
>2) What is the ASCII value for the ALT key
>3) Is there another way to send key strokes to the application
>4) Can we map keys in Visual Foxpro and how
>5) What is the server name and topic name in Fox Pro
>
>Thank you

If you are trying to automate a VFP session, use COM automation.

oVFP=CREATEOBJECT('VisualFoxPro.Application') && create the automation server
oVFP.DoCmd("KEYBOARD '{CTRL+F}'") && Open the Find Dialog
oVFP.DoCmd("KEYBOARD 'LOOK FOR THIS'") && Insert a value to search for
oVFP.DoCmd("KEYBOARD '{ESC}'") && Close the Find Dialog
oVFP.DoCmd('QUIT') && Release the automation server

HTH

Jon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform