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()

        private void PageLoad_Click(object sender, EventArgs e)
            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)

            Submit.Enabled = true;

        private void Submit_Click(object sender, EventArgs e)
            HtmlElement elem = webBrowser.Document.GetElementById("pingform");
            autofill.Enabled = false;
            Submit.Enabled = false;



Thank you

Edited by mr3army: n/a

8 Years
Discussion Span
Last Post by Geekitygeek

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 topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.