Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation of button press on message boxes.
Message
De
18/11/1998 19:28:52
 
 
À
18/11/1998 17:02:43
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00158837
Message ID:
00159064
Vues:
24
>>>>>>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?

I don't have help file on hand, so it's just declaration:
DECLARE INTEGER ShowWindow IN Win32API INTEGER hWnd, INTEGER nShow
You may search UT on 'ShowWindow' to get more info
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform