Jump to content
Sign in to follow this  
stolie

Waiting for Webpage to load

Recommended Posts

stolie

Hi,

I have a series of webpages that i run through and currently use the sleep function (by estimating the time ) to wait for a page to finsih loading.

Problem is that i am encountering problems :) with variations in the time it takes for webpage to finish downloading (eg : high internet traffic etc)

Is there a function i can use that asks for the script to pause until the activate webpage has finished downloading?

Thanks in advance

Share this post


Link to post
Share on other sites
Valuater

here ya go...

RunWait(@ProgramFilesDir & "\Internet Explorer\iexplore.exe www.YOUR_SITE.com")

hope it helps...


NEWHeader1.png

Share this post


Link to post
Share on other sites
SlimShady

Has been asked before. At least twice.

Please use the search function.

Thank you for your cooperation.

Share this post


Link to post
Share on other sites
stolie

Has been asked before. At least twice.

Please use the search function.

Thank you for your cooperation.

<{POST_SNAPBACK}>

Slim, sorry but i did do a search and the answers didnt satisfy my needs, or i didnt understand them

thanks for the help

Share this post


Link to post
Share on other sites
stolie

here ya go...

RunWait(@ProgramFilesDir & "\Internet Explorer\iexplore.exe www.YOUR_SITE.com")

hope it helps...

<{POST_SNAPBACK}>

thankyou, ill do some research and see how i go

Share this post


Link to post
Share on other sites
SlimShady

I don't understand. I use this as an example and it works perfect:

AutoItSetOption("WinTitleMatchMode", 2)

Run("explorer http://www.msn.com")

WinWait("Internet Explorer")
Sleep(1000)
WinSetState("Internet Explorer", "", @SW_MAXIMIZE)

MouseMove(100, 1, 0)

$x = MouseGetCursor()

Do
$x = MouseGetCursor()
Sleep(500)
Until $x = 2

<{POST_SNAPBACK}>

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.