Jump to content
Sign in to follow this  
cbielich

How to know if Internet Explorer 11 is done loading from status bar message?

Recommended Posts

cbielich

I know that this question has been asked a ton here, but most answers refer to getting the status bar message which I think is a great way. I have code that works and retrieves that message just fine. The problem I am coming across is there is no message displayed in IE11 when the page is loading like previous versions did. Some older versions used to display the word "Done" now there is nothing.

Here is my code that does work.

Func WaitLoad()
    Dim $state
    Run(@ProgramFilesDir & "\Internet Explorer\iexplore.exe " & $url, @ProgramFilesDir)
    WinWaitActive("Internet Explorer")
    Do
        $state = ControlGetText("Internet Explorer", "", "msctls_statusbar321")
        Sleep(250)
    Until $state = ""; Change this with the text that IE displays at the bottom left status bar, after the page is fully loaded. In my computer it says "Completed" in Greek :)
    MsgBox(0, "", "Success!")
    Exit
EndFunc

Except I have to leave status asĀ 

Until $state = ""

to make sure it triggers which it does, but of course this is not accurate since the only time anything appears on the status bar is when you hover over a link.

Is there something different with IE 11?

Edited by cbielich
misspelling

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×