Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DDE & Key strokes
Message
From
08/07/2000 00:56:48
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00389752
Message ID:
00389784
Views:
16
>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
Map
View

Click here to load this message in the networking platform