cypher175 Posted February 4, 2009 Share Posted February 4, 2009 How come no @ERROR is set if the IE page is closed before its finished 100% loading..?? Try the below code and right after the IE page is opened, close it before its done loading an nothing else happens, no @ERROR is set..?? Is there any way to detect if the IE page was closed before it was 100% done finished loading..?? #NoTrayIcon #include<IE.au3> $IE = _IECreate("www.autoitscript.com",0,1,1,0) If @error Then MsgBox(0,"_IECreate", "FAILED") EndIf $f_wait Optional: specifies whether to wait for page to load before returning 0 = Return immediately, not waiting for page to load 1 = (Default) Wait for page load to complete before returning Link to comment Share on other sites More sharing options...
cypher175 Posted February 4, 2009 Author Share Posted February 4, 2009 Anybody know anything about this at all..?? Link to comment Share on other sites More sharing options...
BrettF Posted February 4, 2009 Share Posted February 4, 2009 Please wait a minimum 24 hours before bumping your post. Its a rule that's in place so everyone gets "equal" support etc. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
jvanegmond Posted February 4, 2009 Share Posted February 4, 2009 $IE = _IECreate("www.autoitscript.com",0,1,1,0)The bold parameter is $fWait, and not the one after that.. I'm not sure if you knew this.More importantly, if you close the IE window that it creates before the page is completely loaded it will throw an $_IEStatus_LoadWaitTimeout after a while, indicating that the page or window hasn't loaded.Try this code to see:#include<IE.au3> _IELoadWaitTimeout(1000) $IE = _IECreate("www.autoitscript.com",0,1,1) If @error Then MsgBox(0,"_IECreate", "FAILED") EndIf( watch the output in SciTe4AutoIt3 ) github.com/jvanegmond Link to comment Share on other sites More sharing options...
cypher175 Posted February 4, 2009 Author Share Posted February 4, 2009 aight thanx Manadar, that seems to work.. 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