********
Now, to make this simple adfly bot, I'll be using Visual Studio 2010, and its
going to be written in C#..
First, create a new Windows Forms Application, add a webBrowser window, (by default it is webBrowser1, which is how I will be referring to it throughout this tut.)
Then add your button and a textBox, the button will be used to start the bot once the url has been typed into the textBox.
Double click on the button you added, and in the button1_Click method, add this
Code:
Quote:webBrowser1.Navigate(textBox1.Text);That tells the program to navigate to the url in textBox1 once the button has been clicked.
Go back to the design tab, and double click the webBrowser you added, this should take you to a webBrowser1_DocumentCompleted void, add this code
Code:
Quote:clickSubmit();That calls the clickSubmit(); method we're about to add, and also tells the program to wait (sleep) for 5 seconds, and then reload the adf.ly link.
System.Threading.Thread.Sleep(5000);
webBrowser1.Navigate(textBox1.Text);
Finally, we have to add the method that clicks the Skip Ad button on the adf.ly link page. Below the last method in the Form1 class, start a new line and add this method
Code:
Quote:public void clickSubmit()This method will be called from the DocumentCompleted method to click the Skip Ad button.
{
try
{
foreach (HtmlElement hem in webBrowser1.Document.All)
{
if (hem.GetAttribute("id").Contains("skip_button"))
{
hem.InvokeMember("Click");
}
}
}
catch (NullReferenceException)
{
}
}
Now, thats it basically for a SIMPLE adf.ly bot, it clicks the links repeatedly, pair that with an Auto Proxy Switcher, and you could have a functional 24/7 Adfly bot, let me know what you guys think and if I should add to this tut by adding proxy support and running the form hidden as well as timers, counters, and feel free to let me know if you think something specific should be added, thanks!
TOOLS:
Visual Studio 2010: http://btjunkie.org/torrent/Microsoft-Vi...22f5819ab7
This is what the code will look like once its completed: http://pastebin.org/1220428
Tidak ada komentar:
Posting Komentar