Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if IE opened up child windows
Message
From
15/05/2000 17:21:18
 
 
To
15/05/2000 17:00:29
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00369789
Message ID:
00369796
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform