PC Review


Reply
Thread Tools Rate Thread

Determine if a site requires login, if so close browser

 
 
CK
Guest
Posts: n/a
 
      29th Oct 2007
Afternoon all,
I am trying to open an array of sites, if a login box pops up I want to
close that window. Any ideas?

I currently have this

OpenWebSites

WScript.echo "Done"

WScript.quit


Sub OpenWebSites

Dim objHTML

Dim sUrls

Dim sBody

Const DELIMITER = ","


sUrls =
Split("https://mail02.innovasi.com/exchange,http://www.google.com",DELIMITER)

Set objHTML = CreateObject("InternetExplorer.Application")


For j = 0 To UBound(sUrls)

objHTML.Visible = True

objHTML.Navigate(sUrls(j))


while objHTML.ReadyState <> 4

WScript.sleep 50

WScript.echo objHTML.Readystate

wend


sBody = objHTML.Document.body.innerText

WScript.echo sBody

Next


End Sub



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RPC requires a double login Bytemi Microsoft Outlook Discussion 1 4th Dec 2009 04:15 PM
How to determine what version of framework a DLL requires? Michael Bray Microsoft C# .NET 1 7th Dec 2007 05:10 AM
Can you check if a site requires a login and if so, close IE? CK Windows XP Internet Explorer 1 30th Oct 2007 04:50 AM
Site requires ActiveX - Help! =?Utf-8?B?c3Bhcms3OQ==?= Windows XP Internet Explorer 1 30th Nov 2004 08:42 PM
This site requires either Internet Explorer 4+, Netscape 6+ or any browser powered by Gecko TED Windows XP Accessibility 1 1st Nov 2003 04:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:52 PM.