Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot load more than two IE instances
Message
De
25/04/2015 16:57:04
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01611875
Message ID:
01619142
Vues:
21
>You should check for ReadyState == 4 which tells you when the DOM has completed loading.

Thanks, I have adjusted for that:
        Dim loHTMLDocument As mshtml.HTMLDocument = Nothing
        Dim loInternetExplorer As SHDocVw.InternetExplorer = Nothing

        loInternetExplorer = New SHDocVw.InternetExplorer
        loInternetExplorer.Visible = True
        loInternetExplorer.Navigate("MyUrl")
        apiShowWindow(loInternetExplorer.HWND, SW_MAXIMIZE)
        Do While (loInternetExplorer.Busy)
            System.Threading.Thread.Sleep(100)
        Loop
        Do While (loInternetExplorer.ReadyState <> 4)
            System.Threading.Thread.Sleep(100)
        Loop
        loInternetExplorer.Document.getElementById("Username").Value = "MyUsername"
        loInternetExplorer.Document.getElementById("Password").Value = "MyPassword"
        loInternetExplorer.Document.getElementById("Form1").submit()
But, this triggers the problem immediately.

Is this the design you wanted me to try?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform