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

Edited 6 Years Ago by mr3army: n/a

or perhaps instead of a second one
just one file where the blog urls are imported and it uses the default blog title
and submit them all?

You can store both items in the same file, just separate them with a delimiter (such as ; or ,).
Look at this to see how to read in each line of the file. You then need to extract your title and url from the line, run the code to upload the values to the site then move to next line and repeat.

This article has been dead for over six months. Start a new discussion instead.