Hi i would like to know how to get my script to run a list of 15 urls and blog lists
I have no idea how to code this can you please help me so that i can submit 15 urls
My code is;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Ping
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void PageLoad_Click(object sender, EventArgs e)
{
webBrowser.Navigate("http://pingomatic.com/");
autofill.Enabled = false;
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
autofill.Enabled = true;
}
private void autofill_Click(object sender, EventArgs e)
{
webBrowser.Document.GetElementById("title").SetAttribute("value", BlogTitle.Text);
webBrowser.Document.GetElementById("blogurl").SetAttribute("value", BlogUrl.Text);
HtmlElement button = webBrowser.Document.GetElementById("checkall");
if (button != null)
button.InvokeMember("click");
Submit.Enabled = true;
}
private void Submit_Click(object sender, EventArgs e)
{
HtmlElement elem = webBrowser.Document.GetElementById("pingform");
elem.InvokeMember("submit");
autofill.Enabled = false;
Submit.Enabled = false;
}
}
}
Thank you