Sign in to follow this  
Followers 0
DareDev1l

IE wait to load

8 posts in this topic

Hello. How can I make my script wait to load internet explorer and then continue. So every time it runs internet explorer , wait the page to load (whatever it is e.g google , youtube ...) and when it loads , continue the script .

ShellExecute("iexplore.exe")

then ?

Share this post


Link to post
Share on other sites



Did you have a look at the builtin IE UDF? It has a _IELoadWait function.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Yes , but for _IELoadWait I have to type the title of the window , but for each site it is different...

Share this post


Link to post
Share on other sites

you can use the below where $s_url would be the current page you want to go to

_IENavigate(ByRef $o_object, $s_url [, $f_wait = 1])

Share this post


Link to post
Share on other sites

Simple example:

#include <IE.au3>
$bWaitLoad = False
$oIE = _IECreate ( "[url="http://www.google.com"]www.google.com[/url]", 1, 1, $bWaitLoad )
_IELoadWait ( $oIE )
_IENavigate($oIE, "[url="http://www.msn.com"]www.msn.com[/url]", $bWaitLoad )
_IELoadWait ( $oIE )

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

It seems you didn't understand me . For some people it can be site that isn't even well known , it could be facebook or anything , these examples are only for google, msn and another website that I choose , but what if in someone else's computer it is ask.com ? I want to say that it waits just to load the page , whatever it is.

BTW , it shows me that when I open the script made by jdejaney Posted Image

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

The functions mentioned here do what you ask, you need to read about the functions that have been shown to you.

The code you tried has been auto formatted by the forum.

Should be:

$yoururl = '@@@.msn.com' ;replace @@@ with www
_IENavigate($oIE, $yoururl , $bWaitLoad )

$yoururl is a variable meaning that it can be set to whatever url you want

Edited by Shane0000

Share this post


Link to post
Share on other sites

Thanks , I now realised it . Thank you very much !

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  
Followers 0