Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jan 2010
    Location
    Upper Lansdowne NSW Australia
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to tell when a browser finishes loading a page?

    I use Autohotkey extensively for scripting, including loading web pages and extracting details. There are many other similar programs.


    Firefox version 3.6 allowed changes to the throbber to position it in a set position at the front of the menu bar and to change the colour once the page had fully loaded. Autohotkey can then loop round till the colour changes. However the design of Firefox 4 with no menu bar and tabs on top seems to make this at least difficult.


    Is there anyone who is using Firefox 4 (or Google Chrome) who has tried this trick, or has another way of doing the same thing. The ideal is a call mechanism via com similar to that possible with IE, but anything that works reliably will do.


    A page which describes the existing throbber method is http://www.zerosign.net/?p=61

  2. #2
    5 Star Lounger chowur's Avatar
    Join Date
    Mar 2010
    Location
    Indiana
    Posts
    804
    Thanks
    0
    Thanked 54 Times in 51 Posts
    Take a look @ the tab on the far left.When a page is opening the next time you go to open a new site.FF4 has stream lined things down.In other words when you don't see the circle moving any more the web page is fully loaded.
    Problems cannot be solved by the same level of thinking that created them. -Albert Einsten

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    Are you familiar with the Greasemonkey extension? It can run a script when the contents of the page have loaded, just before the browser runs any onload procedures. Thus you can inject your own onload procedure. This example is from the mozdev site (although obviously you wouldn't want to replace the entire page):

    Code:
    window.addEventListener("load", function(e) {
      document.innerHTML = "Hello, world!";
    }, false);
    Maybe you can create a script to add something Autohotkey will pick up on? Or a script that does some or all of what your Autohotkey script is doing?

  4. #4
    New Lounger
    Join Date
    Dec 2009
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The Opera browser has this feature built-in (under Preferences, Advanced, Notifications, Page Loaded). Don't know that much about Firefox.

    Also, have you checked in Control Panel, Sounds, Sounds, Program Events? I've set several sounds there for various software.

    After reading your original request more carefully, this may not be what you're looking for. Sorry 'bout that!
    Last edited by Alphawave; 2011-04-10 at 14:11.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •