Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stuffing the keyboard buffer
Message
 
To
03/06/1999 11:16:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00225979
Message ID:
00226012
Views:
37
>Does anybody know the correct syntax in VFP to declare and call
>the "keybd_event" API function?
>
>I'm running an external application which when it runs presents the user with a Yes and No button, with the Yes button set as the default. I am trying to automate the execution of this external function as much as possible and want to programmatically press the Enter key to trigger the Yes button and conclude the process.

Hi Mark,

Are you using the MESSAGEBOX() function, or a dialog of your own design? I really don't think that you can automate this from within VFP if you're using MESSAGEBOX() since the dialog is modal to the application. However, if you're not using MESSAGEBOX(), all you have to do is use the KEYBOARD command, to make it look as if the default command button was pressed.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform