Jump to content
Sign in to follow this  
zasxes

How Do I Ensure A Webpage Has Loaded Fully

Recommended Posts

zasxes

;This is what I want to do

$STUDY="http://www.google.com"

Run ('explorer.exe '& $STUDY)

;do somthing here that will pause until the page has fully loaded

$title1=WinGetTitle("","")

; rest of script

Share this post


Link to post
Share on other sites
zasxes

One problem I see. I know what title I expect if it works but if it fails the title is based on the error. How do I deal with not knowing the title

Share this post


Link to post
Share on other sites
scriptkitty

There are a few exceptions to this however.

1) if your mouse happens to be over a link..

2) if the page has javascript that changes the titlebar.

Just take these into consideration when designing, say like move your mouse to 0,0,0 as you load it.

Also the stop loading button dehighlights once it is loaded, so you can use the pixelsearch color on that. It may be more reliable.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.