Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 24 Jun 2005 10:08:02 -0700,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


Automated IE detecting popups using VBScript   
I am working on a simple VBScript that instantiates IE 6.  My script then 
proceeds to “drive” IE by reading urls from a text file.  I use this script 
for testing various websites.  The problem is that from time to time I come 
across sites with popups of various forms.  Can I detect new IE windows being 
fired up by these sites and either kill them off or do a KeySend (or is it 
SendKey) to simple click CANCEL?

I have seen another script that fetches off the window handles as in 
win.HWND. Would this be a way? And if so, once I fetch of the handle, how do 
I manipulate (i.e. kill ) the new window by using its handle?

Thanks

P.S. can something similar be done for Firefox? Is there a vbscript that 
"drives" firefox?
date: Fri, 24 Jun 2005 10:08:02 -0700   author:   llamaflaca

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us