Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if IE opened up child windows
Message
De
15/05/2000 17:21:18
 
 
À
15/05/2000 17:00:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00369789
Message ID:
00369796
Vues:
28
>I am writing an app where VFP navigates through a lot of different web pages. A few of them will spam the user with additional child windows.
>
>Is there a way to check for this? I consulted the Explorer Object Model but I am confused that VFP starts with oIE.Document and not the top level oIE.Window after instantiation.
>

You can iterate the set of active IE Windows through the Shell.Application's Windows collection:
oShell = CREATEOBJ('Shell.Application')
FOR EACH oIEInstance IN oShell.Windows
   *  each oIEInstance is a unique instance of InternetExplorer.Application
   ? oIEInstance.LocationURL, oIEInstance.Top
ENDFOR
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