help please

10/31/2015 09:15 mouradhndr#1
I want to log in Darkorbit using a vb.net code but I didn't succeed; this is my code:
WebBrowser1.Document.GetElementById("bgcdw_login_f orm_username").SetAttribute("value", TextBox1.Text) ' this is good
WebBrowser1.Document.GetElementById("bgcdw_login_f orm_password").SetAttribute("value", TextBox2.Text) ' this is good
WebBrowser1.Document.GetElementById("submit").Invo keMember("click") ' this is wrong
can someone help please!:handsdown:
11/05/2015 13:46 AaronJ21#2
Quote:
Originally Posted by mouradhndr View Post
I want to log in Darkorbit using a vb.net code but I didn't succeed; this is my code:
Code:
WebBrowser1.Document.GetElementById("bgcdw_login_form_username").SetAttribute("value", TextBox1.Text); //this is good
WebBrowser1.Document.GetElementById("bgcdw_login_form_password").SetAttribute("value", TextBox2.Text); //this is good
WebBrowser1.Document.GetElementById("submit").InvokeMember("click");  //this is wrong
can someone help please!:handsdown:
Hey, i had the same problem solved with this method:

Code:
doc.GetElementById("bgcdw_login_form_username").InnerText = UserName.Text;
doc.GetElementById("bgcdw_login_form_password").Focus();
doc.GetElementById("bgcdw_login_form_password").InnerText = Password.Text;
SendKeys.Send("{ENTER}");
It's a C# code but you can easily adapt it to VB ;)
Let me know :mofo:

P.S.
Next time use [code] tag.
11/05/2015 14:04 Freshek#3
You want to click in BG?
11/05/2015 17:33 Viceroy-#4
Quote:
Originally Posted by Freshek View Post
You want to click in BG?
Uhm, as I understood that is a code to autologin in DarkOrbit home page which gets the text from 2 text boxes :handsdown:
11/05/2015 19:56 AaronJ21#5
Quote:
Originally Posted by KaloianBG View Post
Uhm, as I understood that is a code to autologin in DarkOrbit home page which gets the text from 2 text boxes :handsdown:
Correct, he just wants to login to DarkOrbit with a webbrowser
11/05/2015 20:01 Freshek#6
Code:
HtmlElementCollection elc = this.webBrowser1.Document.GetElementsByTagName("input");  
foreach (HtmlElement el in elc)  
{  
   if (el.GetAttribute("type").Equals("submit"))  
   {  
        el.InvokeMember("Click");  
        break;
   }  
 }
Please! ;)