change time to web not busy

Posted on 2006-04-26
Last Modified: 2010-05-01
I have this button called login and it goes my email and logs me in
I dont want to set time what I want instead is when the browser
is not busy, how can I do that?
    Call WebBrowser1.Navigate("")
    For i = 1 To 50
        Sleep (100)
    With WebBrowser1.Document
         Set txtLogin = .GetElementsByName("email")(0)
         Set txtPasswd = .GetElementsByName("pass")(0)
         txtLogin.Value = ""
         txtPasswd.Value = "pass"
    End With
    For i = 1 To 50
        Sleep (100)
Question by:aplelois
    1 Comment
    LVL 29

    Accepted Solution


    While (WebBrowser1.ReadyState <> READYSTATE_COMPLETE)

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Share codes 68 103
    Watch V6 5 42
    Setup specific permissions in Microsoft Access 9 48
    VB6 convert MSHFlexgrid1 cells no2 2 34
    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now