Advertisement
Guest User

Untitled

a guest
Aug 29th, 2011
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. WebBrowser1.ScriptErrorsSuppressed = True
  2. WebBrowser2.ScriptErrorsSuppressed = True
  3. WebBrowser2.Navigate("http://thebotnet.com")
  4. Delay(5)
  5. Dim textthinge As HtmlElement = WebBrowser2.Document.GetElementById("label")
  6. textthinge.SetAttribute("value", TextBox1.Text)
  7. Dim textthinge2 As HtmlElement = WebBrowser2.Document.GetElementById("navbar_password")
  8. textthinge2.SetAttribute("value", TextBox2.Text)
  9. Dim g As HtmlElementCollection = WebBrowser2.Document.GetElementsByTagName("input")
  10. Dim ElCollection As HtmlElementCollection = WebBrowser2.Document.GetElementsByTagName("input")
  11. For Each Element As HtmlElement In ElCollection
  12. If Element.GetAttribute("title").Contains("Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself.") Then
  13. Element.InvokeMember("click")
  14. End If
  15. Next
  16. Delay(10)
  17. Dim h As HtmlElementCollection = WebBrowser2.Document.GetElementsByTagName("a")
  18. For Each element As HtmlElement In h
  19. If element.GetAttribute("href") = "http://thebotnet.com/private.php" Then
  20. Button1.Enabled = True
  21. Button2.Enabled = False
  22. End If
  23. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement