vvlonghorn Posted July 11, 2008 Share Posted July 11, 2008 I know that there has been a lot of post about loading webpages, but I couldn't find one that works with my limited amount of information. I need something that will wait until the webpage loads, BUT i don't already know the URL of the page, and i can't look at the title or status bar of the browser because the title never changes, and the status bar will read done after i click on the link all the way up to right before the link loads, and then reads done again. is there anything that doesn't require me to open a new webpage, know the url, etc.? Link to comment Share on other sites More sharing options...
Andreik Posted July 11, 2008 Share Posted July 11, 2008 (edited) _IECreate and _IELoadWait. Edited July 11, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
KnowNothing Posted July 11, 2008 Share Posted July 11, 2008 (edited) Have you tried _IELoadWait ? "Wait for a browser page load to complete before returning." /e damn that Andreik... Edited July 11, 2008 by KnowNothing Link to comment Share on other sites More sharing options...
Andreik Posted July 11, 2008 Share Posted July 11, 2008 And you can set timeout with _IELoadWaitTimeout(). When the words fail... music speaks. Link to comment Share on other sites More sharing options...
vvlonghorn Posted July 11, 2008 Author Share Posted July 11, 2008 Yeah, _IELoadWait is what i had in mind, but i'm not very familiar with it and every example that i've seen starts out by opening a new browser. I need it to be able to run from a browser that i've already opened. Can it do this, if so I wasn't sure what arguments to send it... is it just _IELoadWait(), or is there something that i need to send it? Thanks so much for the quick replies. Link to comment Share on other sites More sharing options...
Andreik Posted July 11, 2008 Share Posted July 11, 2008 (edited) Yeah, _IELoadWait is what i had in mind, but i'm not very familiar with it and every example that i've seen starts out by opening a new browser. I need it to be able to run from a browser that i've already opened. Can it do this, if so I wasn't sure what arguments to send it... is it just _IELoadWait(), or is there something that i need to send it? Thanks so much for the quick replies. ; ******************************************************* ; Example 1 - Open the AutoIt forum page, tab to the "View new posts" ; link and activate the link with the enter key. ; Then wait for the page load to complete before moving on. ; ******************************************************* ; #include <IE.au3> $oIE = _IECreate ("http://www.autoitscript.com/forum/index.php") Send("{TAB 12}") Send("{ENTER}") _IELoadWait ($oIE) #include <IE.au3> _IELoadWait ( ByRef $o_object [, $i_delay = 0 [, $i_timeout = -1]] ) Read in help file for syntax of all functions. Edited July 11, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
vvlonghorn Posted July 11, 2008 Author Share Posted July 11, 2008 (edited) Yes but doesn't that create a NEW browser window. I need this to work with the one that is already open... which i don't know the url to get to. Edited July 11, 2008 by vvlonghorn Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 11, 2008 Share Posted July 11, 2008 Yes but doesn't that create a NEW browser window. I need this to work with the one that is already open... which i don't know the url to get to._IEAttach() (see helpfile for syntax and examples) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
vvlonghorn Posted July 12, 2008 Author Share Posted July 12, 2008 Thanks, the embedded thing worked great, no more errors...but i'm still having a small problem. Actually, i haven't made any real progress because with the way that the website is set up, it still thinks that the page is done loading all the time. The only indicator that it isn't is the windows animation in the upper right corner. Is there anyway to key off of that, or am i pushing my luck? and thanks again for the help so far. 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