>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only