AutoHotkey Community

It is currently May 27th, 2012, 12:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: FireFox Webpage Loaded
PostPosted: October 26th, 2007, 7:56 pm 
I'm fairly new to Autohotkey, but found that the suggested solution for determining if a webpage has loaded doesn't seem to work with Firefox. I came up with this workaround which seems to work for me (Assuming FF is your default browser):

Code:
FFLoad(site,title)
{
    run, %site%
    WinWait, %title%
    SendInput, ^u
    WinWait, Source of:
    SendInput, ^w
    return
}


Supposing we're loading cnn.com:

Code:
FFLoad("http://www.cnn.com","CNN.com - Breaking News")


Basically we run the web address, then wait for the Title to change which won't happen until it's gotten a title from the HTML source. Then we hit CTRL-U which brings up the 'View Source' window. This window's title will change to "Source of: ...", but -not until- the source file is fully downloaded. We then hit CTRL-W to close that Window and find a fully loaded page (However the images may not all have been downloaded, but this shouldn't matter for the most part if you're navigating without the mouse.)

~JJM


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 12th, 2009, 6:10 pm 
Online
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
wow quite an interesting way of doing this thanks

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: One more way..
PostPosted: October 15th, 2009, 8:24 am 
Offline

Joined: September 15th, 2006, 10:25 am
Posts: 567
One other way is to set up a greasemonkey script to add a unique word to the tilte of each website, and wait till that word is found in the page title. Greasemonkey scripts are applied only after the page is loaded. Ajax is an exception.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Will not work reliably
PostPosted: November 16th, 2010, 4:04 am 
This will not work for slow connections, so the use makes no sense.

Firefox preloads the title so you will have a nearly empty sourcefile.

it would work if you do that in a loop and "break" if some string is detect. But ifso why not just download the webpage to check for string? i do

regards


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2010, 4:10 am 
Offline

Joined: May 1st, 2010, 6:01 pm
Posts: 1020
Location: England
yes this does basically nothing as the so called "Source of:" will always come up regardless of whether its loaded.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Rajat and 56 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group