Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finally, a way around Outlook/MAPI dialogs on sending em
Message
De
27/05/2002 02:37:39
 
 
À
15/05/2002 12:25:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00655520
Message ID:
00661583
Vues:
28
>I use VFP REPORT command to create reports in Web server.
>However, if there is an error in report, VFP displays
>modal centered error messagebox having OK and HELP buttons.
>This box which cannot be captured by ON ERROR.
>
>Is it possible to use your code to Click the OK button in this messagebox ?

I doubt it will work in that situation, but you could always try it. The problem comes with knowing the exact text in the Window title (an inexact name can be used, but the results are unpredictable, since the first Window encountered matching as well as another window will be taken as the app window by AppActivate(). In addition, the timing of the delay needs to be predictable; firing AppActivate() and SendKeys() too early may cause the app to eat the keystroke.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform