Jump to content

C# Webbrowser Sayfa Yüklendiğini Kontrol Etmek


WolfmanTR_
 Share

Recommended Posts

#include <IE.au3>
_IEErrorHandlerRegister()

$oIE = _IECreate("about:blank")
_IENavigate($oIE, "http://www.autoitscript.com/forum/index.php"); (Default) Wait for page load to complete before returning
MsgBox(0, 'Done', 'Done loading page')
_IEQuit($oIE)

;OR WITH IE PROPERTY

$oIE = _IECreate("about:blank")
_IENavigate($oIE, "http://www.autoitscript.com/forum/index.php", 0) ;Return immediately, not waiting for page to load
While _IEPropertyGet($oIE, "busy") = True
    Sleep(50); wait while IE is busy
WEnd
MsgBox(0, 'Done', 'Done loading page' & @CRLF & "-Open your own instance of IE for the next method.")
_IEQuit($oIE)

;OR WITH ATTACH

$oIE = _IEAttach('', 'Instance')
If @error Then
    MsgBox(0, 'Error', 'No instance of IE to attach to.')
Else
    _IENavigate($oIE, "http://www.autoitscript.com/forum/index.php") ;Default) Wait for page load to complete before returning
    MsgBox(0, 'Done', 'Done loading page')
    _IEQuit($oIE)
EndIf

autoit ile böyle ama 

C# dili bilmiyorum  belki fikir verir :)

Edited by mesale0077
Link to comment
Share on other sites

Sorun çözülmüştür

 

 while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
           {
               Application.DoEvents();
           }
           MessageBox.Show("Loaded");
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Similar Content

    • By Mr.Lonely
      Matematiksel sayı tabanlarını birbirine dönüştürmenizi sağlayan bir uygulamadır. Program ücretsizdir. Türkçe ve İngilizce olarak 2 dil ayarı bulunmaktadır.

      ..:: Programın çeviri yaptığı sayı tabanları ::..

      # İkilik (Binary)
      # Sekizlik (Octal)
      # Ondalık (Decimal)
      # Onaltılık (Hexa Decimal, Hex)

      ..:: Kullanım Notları ::..

      # Program seçim yaptığınız sayı tabanlarına göre sayı girişi yapmanıza izin verecektir. Dolayısıyla farklı karakterler, sayılar girmeye çalışmayınız. (Örn; İkilik (0,1), Sekizlik (0,1,2,3,4,5,6,7))
      # İkilik sayı tabanından diğer sayı tabanlarına dönüşüm yapılırken maksimum 63 karakter sayı girişi yapılabilir.
      # Sekizlik sayı tabanından diğer sayı tabanlarına dönüşüm yapılırken maksimum 21 karakter sayı girişi yapılabilir.
      # Ondalık sayı tabanından diğer sayı tabanlarına dönüşüm yapılırken maksimum 18 karakter sayı girişi yapılabilir.
      # Onaltılık sayı tabanından sekizlik ve ondalık (onluk) sayı tabanına dönüşüm yapılırken makimum 15 karakter sayı girişi yapılabilir.


      [spoiler]













      [/spoiler]
       

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...