DareDev1l Posted August 17, 2012 Share Posted August 17, 2012 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 ? Link to comment Share on other sites More sharing options...
water Posted August 17, 2012 Share Posted August 17, 2012 Did you have a look at the builtin IE UDF? It has a _IELoadWait function. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
DareDev1l Posted August 17, 2012 Author Share Posted August 17, 2012 Yes , but for _IELoadWait I have to type the title of the window , but for each site it is different... Link to comment Share on other sites More sharing options...
Shane0000 Posted August 17, 2012 Share Posted August 17, 2012 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]) Link to comment Share on other sites More sharing options...
jdelaney Posted August 17, 2012 Share Posted August 17, 2012 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. Link to comment Share on other sites More sharing options...
DareDev1l Posted August 18, 2012 Author Share Posted August 18, 2012 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 Link to comment Share on other sites More sharing options...
Shane0000 Posted August 18, 2012 Share Posted August 18, 2012 (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 August 18, 2012 by Shane0000 Link to comment Share on other sites More sharing options...
DareDev1l Posted August 18, 2012 Author Share Posted August 18, 2012 Thanks , I now realised it . Thank you very much ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now