Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation of button press on message boxes.
Message
From
18/11/1998 17:02:43
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, United States
 
 
To
18/11/1998 15:47:37
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00158837
Message ID:
00159023
Views:
26
>>>>>We are working on a application tester and we have run into a couple of problems. Is there some kind of API call or a number of API calls that can automate the pressing of a button from a message box?
>>>>>
>>>>>TIA
>>>>>
>>>>>Dan
>>>>
>>>>You can fire KEYBOARD (messagebox's hot key) from Timer.Timer event
>>
>>Sorry for the previous message, I clicked the Preview button out of curosity and then clicked the browser Back button but did'nt notice that it deleted my input. Anyway, here is my original post:
>>
>>
>>The method you suggest works great as long as the VFP app has the focus. However, if a system event (such as a broken phone connection) causes a system messagebox to fire before the timer expires then the KEYBOARD will be directed to the wrong place. Do you know of any way to make sure the focus in on the correct messagebox before firing the keyboard?
>
>Firstly, I don't think that VFP Keyboard command is able (even accidentally) to send keystroke to another application. BTW, it would be great but, alas, impossible.

To clearify my previous post, the reason I said the KEYBOARD was going to the wrong place was because all I know is that it is not going to the right place. (then it must be going to the wrong place eh?)

>In regard to focus: you may use API ShowWindow to do it.

Could you direct me to some information on the API calls?
Donny Sims

Life is what happens to us while were busy making other plans.
- John Lennon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform