You need to place it in the webbrowser, you can also watch my source in the attatchments for it ;)Quote:
I did not understand this step:
3-. For the following step, we're abou to create the bot itself... Double click your webbrowser and use this code...
where I place the code? in the button?
Great Tut man :D
bool didWeNavigated = false;
bool gottheserver = false;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("http://www.darkorbit.com"); //This will navigate to the darkorbit website and fill in all the information.
didWeNavigated = true;
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if ( didWeNavigated == false) { //If we could not connect to darkorbit due no internet connection/darkorbit website is down, it will stop.
Close();
}
else if(didWeNavigated == true) {
didWeNavigated = false;
string username = textBox1.Text; //It will make it be able for the bot to fill in the username with the right values
string password = textBox2.Text ; //It will make it be able for the bot to fill in the password with the right values
webBrowser1.Document.GetElementById("loginForm_default_username").SetAttribute("Value", username); //This will search for the Username box, and paste the username information into that text field.
webBrowser1.Document.GetElementById("loginForm_default_password").SetAttribute("Value", password); //This will search for the Password box, and paste the password information into that text field.
webBrowser1.Document.GetElementById("loginForm_default_loginButton").Focus(); //This one will Focus (search) on the page for the login button...
webBrowser1.Document.GetElementById("loginForm_default_loginButton").InvokeMember("click"); //This one will click the login button, when it has been found.
HtmlElementCollection htmlel = webBrowser1.Document.GetElementsByTagName("input");
HtmlElement el1;
}
}
Me too, but I only make it with DO loging and also to get info from the account: Uridium, Credits, ID, SID etc... Ofc all with super fast http request :DQuote:
luckily i made my own DarkOrbit_API.dll which contains item upgrader , upgrade items getting, equipment reader , equipment setter etc. :D
Noobish. What is hard in stupid using webrequest class or sockets.Quote:
Me too, but I only make it with DO loging and also to get info from the account: Uridium, Credits, ID, SID etc... Ofc all with super fast http request :D
Someone want me to release it with open source? :rolleyes: