Register for your free account! | Forgot your password?

You last visited: Today at 21:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



help please

Discussion on help please within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old   #1
 
mouradhndr's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 167
Received Thanks: 15
Arrow help please

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!
mouradhndr is offline  
Thanks
1 User
Old 11/05/2015, 13:46   #2
 
elite*gold: 32
Join Date: Sep 2014
Posts: 56
Received Thanks: 20
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!
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

P.S.
Next time use [code] tag.
AaronJ21 is offline  
Old 11/05/2015, 14:04   #3
 
Freshek's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 803
Received Thanks: 1,362
You want to click in BG?
Freshek is offline  
Old 11/05/2015, 17:33   #4
 
Viceroy-'s Avatar
 
elite*gold: 36
Join Date: Oct 2015
Posts: 927
Received Thanks: 207
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
Viceroy- is offline  
Old 11/05/2015, 19:56   #5
 
elite*gold: 32
Join Date: Sep 2014
Posts: 56
Received Thanks: 20
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
Correct, he just wants to login to DarkOrbit with a webbrowser
AaronJ21 is offline  
Old 11/05/2015, 20:01   #6
 
Freshek's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 803
Received Thanks: 1,362
Code:
HtmlElementCollection elc = this.webBrowser1.Document.GetElementsByTagName("input");  
foreach (HtmlElement el in elc)  
{  
   if (el.GetAttribute("type").Equals("submit"))  
   {  
        el.InvokeMember("Click");  
        break;
   }  
 }
Please!
Freshek is offline  
Reply




All times are GMT +2. The time now is 21:30.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.