Please Help - How to detect that IE is done loading a page?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Crosby

Please Help - How to detect that IE is done loading a page?

Post by Crosby » Fri Feb 27, 2004 7:03 pm

Hi, I'm trying to detect whether IE is done loading a page. The best I can think of is to watch for the Status line to indicate "Done" with GetRectCheckSum>. My problem is, I can't get the function to work. The following snippet...
Let>cs=0
GetRectCheckSum>510,233,515,238,cs
if>cs=0,Nope
MessageModal>%cs%
GoTo>END
Label>Nope
MessageModal>Nope
Label>END

Always returns Nope, though I'd hoped it would tell me the checksum for the rectangle. I must be doing somthing dumb? Please help!
Thanks,
Crosby

Lumumba

Post by Lumumba » Fri Feb 27, 2004 11:24 pm

You've got it. But as GetRectCheckSum> is doing a very time consuming compare you should limit the check from "Done" to "D" (or a part of it).

I've done it with WaitPixelColor> (WPC) at position 27,737 (to check if the lower left pixel at the character "D" has become black / 1024x768 resolution).

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Mar 03, 2004 2:03 pm

Hi,

This question comes up time and again. Hence the examples. For IE use VBScript and IE's Busy property. An example is at:

http://www.mjtnet.com/scripts.hts?display+77
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts