Problems in Waiting for Web page to Open

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi
Inexperienced scripter building a small vbs script to allow hotkey
combo launching of a virus scanner that, without the script, would
require "mouse-clicking" through four different pages before the
scanner will start.

The script starts by launching IE and then calling the virus scanner
Start Page, waiting until the page is fully open, tabbing (via
SendKeys)to the appropriate button and Entering (via SendKeys).
The "waiting" in this step is done via:

While IE.ReadyState <> READYSTATE_COMPLETE : Wscript.Sleep tDoEvents
Wend

This brings up a EULA page where I would have liked to have used the
same While....Wend loop to wait until the page was fully open before
using the SendKeys function to "click" the Accept button and move to
the next page. However, use of the While....Wend loop causes the script
to stop and go no further. To overcome this, I have used instead a
Sleep command (WScript.Sleep 5000) whereupon it proceeds without
difficulty.

In the subsequent page, the scanner downloads updates for a time that
is quite variable depending chiefly on the days since the last update.
Once again, the While....Wend loop causes the script to stop while a 25
second Sleep, in its place, overcomes this problem in a somewhat
inelegant manner as perhaps as little as 2 seconds are necessary to
download the updates.

The final page allows choice of what is to be scanned. Here the
While....Wend loop works fine.

Although the script does what it is supposed to do, I`m puzzled as to
why the While....Wend loop works in only two of the four attempts to
incorporate it in this "macro".
Can anybody suggest what might be the problem here?

TIA
Paul

.



Relevant Pages

  • Re: Multi-sampling and "2400x4800 dpi" scanners
    ... >> Perhaps you might want to look at the firmware. ... Fractels, Nik Sharpener Pro, or getting the SDK for PhotoShop Plug-Ins. ... > Another script, or the same script, would create copies of the images ... That would be different than altering the Epson scanner driver. ...
    (comp.periphs.scanners)
  • coldplug udev issue
    ... I am using a scanner which needs to have its lamp switched off when plugged ... I wrote a script for that, which is called by an udev rule. ... The script which switches off the lamp has some debug output which helps to ...
    (Debian-User)
  • Re: Internet homepage keeps changing
    ... > or the direct URL ... > I also invite you to look at another Command Line Scanner front end I ... The script will then perform a FTP get ... > and download the needed files and run the scanner as needed. ...
    (microsoft.public.security.virus)
  • RE: Port Scanner Reports
    ... It'd be really easy to script with just about any CLI-based scanner, ... I believe this would include nmap - so you run nmap against ... Cross site scripting and other web attacks before hackers do! ...
    (Pen-Test)
  • Re: Report in FM 6 or 7
    ... achieve this report format will have to be done via scripting. ... but they will simplify the script and Sort Order. ... End Loop ... The normal 'Dancer' field is used so that if there are more than one ...
    (comp.databases.filemaker)