>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement