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

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?

even at least a way to open a file

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.