MMD Indexer/Ping.

LiQuid.Ace

Member
Joined
Oct 5, 2011
Messages
33
Reaction score
0
Points
6
Coded this a while ago and never released it. Mainly used it for personal use.

Image:






Source:

Code:
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;
using System.Threading;
using System.IO;
using System.Net;
using System.Diagnostics;
using Microsoft.Win32;

namespace Multi_Task
{
    public partial class mainForm : Form
    {
        /* Multi-Ping Variables */

        private string pingURL = "";
        private string pingServices = "";
        private int checkCounter = 0;
        private Thread pingThread;
        private bool pingReady = false;
        private ListViewItem loadFile;

        public mainForm()
        {
            InitializeComponent();
            CheckForIllegalCrossThreadCalls = false;
        }

        /*********************************************************/
        /*                      Multi-Ping                       */
        /*********************************************************/

        /* Multi-Ping - Events */

        private void pingButton_Click(object sender, EventArgs e)
        {
            pingURL = "";

            pingThread = new Thread(new ThreadStart(pingStart));
            pingThread.Start();
        }

        private void addButton_Click(object sender, EventArgs e)
        {
            if (titleTextBox.Text == "")
                MessageBox.Show("Error: Please enter a Title", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            else if (blogurlTextBox.Text == "" && !checkURL(correctURL(blogurlTextBox.Text)))
                MessageBox.Show("Error: Please enter a Blog URL", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            else if (rssTextBox.Text == "" && !checkURL(correctURL(rssTextBox.Text)))
                MessageBox.Show("Error: Please enter a RSS Feed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            else
            {
                ListViewItem sites = new ListViewItem(titleTextBox.Text);
                ListViewItem.ListViewSubItem sitesURL = new ListViewItem.ListViewSubItem(sites, correctURL(blogurlTextBox.Text));
                ListViewItem.ListViewSubItem sitesRSS = new ListViewItem.ListViewSubItem(sites, correctURL(rssTextBox.Text));
                ListViewItem.ListViewSubItem sitesStatus = new ListViewItem.ListViewSubItem(sites, "Incomplete");
                sites.SubItems.Add(sitesURL);
                sites.SubItems.Add(sitesRSS);
                sites.SubItems.Add(sitesStatus);
                sitesListView.Items.Add(sites);
            }
        }

        private void selectallCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            if (selectallCheckBox.Checked)
            {
                foreach (Control ctl in pingGroupBox.Controls)
                {
                    if (ctl is CheckBox)
                        ((CheckBox)ctl).Checked = true;
                }

                selectallCheckBox.Text = "De-select All";
            }
            else
            {
                foreach (Control ctl in pingGroupBox.Controls)
                {
                    if (ctl is CheckBox)
                        ((CheckBox)ctl).Checked = false;
                }

                selectallCheckBox.Text = "Select All";

                pingURL = "";
            }
        }

        /* Multi-Ping - Methods */

        private string buildSites()
        {
            pingServices = "";

            if (webblogsCheckBox.Checked)
                pingServices += "&chk_weblogscom=on";
            else
                pingServices.Replace("&chk_weblogscom=on", "");

            if (feedburnerCheckBox.Checked)
                pingServices += "&chk_feedburner=on";
            else
                pingServices.Replace("&chk_feedburner=on", "2");

            if (yahooCheckBox.Checked)
                pingServices += "&chk_myyahoo=on";
            else
                pingServices.Replace("&chk_myyahoo=on", "");

            if (blogrollingCheckBox.Checked)
                pingServices += "&chk_blogrolling=on";
            else
                pingServices.Replace("&chk_blogrolling=on", "");

            if (weblogalotCheckBox.Checked)
                pingServices += "&chk_weblogalot=on";
            else
                pingServices.Replace("&chk_weblogalot=on", "");

            if (topicexCheckBox.Checked)
                pingServices += "&chk_topicexchange=on";
            else
                pingServices.Replace("&chk_wtopicexchange=on", "");

            if (bloglinesCheckBox.Checked)
                pingServices += "&chk_bloglines=on";
            else
                pingServices.Replace("&chk_wbloglines=on", "");

            if (collectaCheckBox.Checked)
                pingServices += "&chk_collecta=on";
            else
                pingServices.Replace("&chk_collecta=on", "");

            if (geourlCheckBox.Checked)
                pingServices += "&chk_geourl=on";
            else
                pingServices.Replace("&chk_geourl=on", "");

            if (blogsCheckBox.Checked)
                pingServices += "&chk_blogs=on";
            else
                pingServices.Replace("&chk_blogs=on", "");

            if (syndicCheckBox.Checked)
                pingServices += "&chk_syndic8=on";
            else
                pingServices.Replace("&chk_syndic8=on", "");
 
            if (pubsubCheckBox.Checked)
                pingServices += "&chk_pubsubcom=on";
            else
                pingServices.Replace("&chk_pubsubcom=on", "");

            if (blogstreetCheckBox.Checked)
                pingServices += "&chk_blogstreet=on";
            else
                pingServices.Replace("&chk_blogstreet=on", "");

            if (icerocketCheckBox.Checked)
                pingServices += "&chk_icerocket=on";
            else
                pingServices.Replace("&chk_icerocket=on", "");

            if (googleblogCheckBox.Checked)
                pingServices += "&chk_google=on";
            else
                pingServices.Replace("&chk_google=on", "");

            if (postrankCheckBox.Checked)
                pingServices += "&chk_postrank=on";
            else
                pingServices.Replace("&chk_postrank=on", "");

            if (audioweblogsCheckBox.Checked)
                pingServices += "&chk_audioweblogs=on";
            else
                pingServices.Replace("&chk_audioweblogs=on", "");

            if (abgeoCheckBox.Checked)
                pingServices += "&chk_a2b=on";
            else
                pingServices.Replace("&chk_a2b=on", "");

            if (technoratiCheckBox.Checked)
                pingServices += "&chk_technorati=on";
            else
                pingServices.Replace("&chk_technorati=on", "");
 
            if (newsgatorCheckBox.Checked)
                pingServices += "&chk_newsgator=on";
            else
                pingServices.Replace("&chk_newsgator=on", "");

            if (blogdiggerCheckBox.Checked)
                pingServices += "&chk_blogdigger=on";
            else
                pingServices.Replace("&chk_blogdigger=on", "");

            if (moreoverCheckBox.Checked)
                pingServices += "&chk_moreover=on";
            else
                pingServices.Replace("&chk_moreover=on", "");

            if (newsisfreeCheckBox.Checked)
                pingServices += "&chk_newsisfree=on";
            else
                pingServices.Replace("&chk_newsisfree=on", "");
 
            if (spinnerCheckBox.Checked)
                pingServices += "&chk_tailrank=on";
            else
                pingServices.Replace("&chk_tailrank=on", "");

            if (skygridCheckBox.Checked)
                pingServices += "&chk_skygrid=on";
            else
                pingServices.Replace("&chk_skygrid=on", "");

            if (rubhubCheckBox.Checked)
                pingServices += "&chk_rubhub=on";
            else
                pingServices.Replace("&chk_rubhub=on", "");

            if (blogsharesCheckBox.Checked)
                pingServices += "&chk_blogshares=on";
            else
                pingServices.Replace("&chk_blogshares=on", "");

            return pingServices;
        }

        private void mainForm_Load(object sender, EventArgs e)
        {
            sitesListView.Columns.Add("Title", 147, HorizontalAlignment.Center);
            sitesListView.Columns.Add("Main URL", 40, HorizontalAlignment.Left);
            sitesListView.Columns.Add("RSS URL", 40, HorizontalAlignment.Left);
            sitesListView.Columns.Add("Status", 147, HorizontalAlignment.Left);

            if (File.Exists(Application.StartupPath + "\\Sites.ini"))
            {
                if (!loadSites())
                    MessageBox.Show("Error: Failed to load sites", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }

        private void pingStart()
        {
            int iAmount = sitesListView.Items.Count;

            ListViewItem[] lviSites = new ListViewItem[sitesListView.Items.Count];
            sitesListView.Items.CopyTo(lviSites, 0);

            for (int i = 0; i < lviSites.Length; i++)
            {
                pingURL = "http://pingomatic.com/ping/?title=" + lviSites[i].Text + "&blogurl=" + lviSites[i].SubItems[1].Text + "&rssurl=" + lviSites[i].SubItems[2].Text + buildSites();

                if (pingSites(pingURL))
                    sitesListView.Items[checkCounter].SubItems[3].Text = "Success";
                else
                    sitesListView.Items[checkCounter].SubItems[3].Text = "Failed";

                checkCounter++;
            }

            pingThread.Abort();
            pingThread.Join();
        }

        private bool pingSites(string URL)
        {
            pingBot PingBot = new pingBot(pingURL);

            if(PingBot.Ping())
                return true;

            return false;
        }

        private string correctURL(string URL)
        {
            string _URL = URL;

            if (_URL == "")
                return "";

            if (!_URL.EndsWith("/"))
                _URL += "/";

            if (!_URL.StartsWith("http://") || !_URL.StartsWith("www."))
                _URL = "http://" + _URL;

            return _URL;
        }

        private bool checkURL(string URL)
        {
            string _URL = URL;

            if (_URL == "")
                return false;

            HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(_URL);
            HttpWebResponse res = (HttpWebResponse)req.GetResponse();

            if (res.StatusCode.ToString() == "OK")
                return true;
            else
                return false;
        }

        public bool loadSites()
        {
            try
            {
                string TrimedTitle = "", TrimedURL = "", TrimedRSS = "";

                if (File.Exists("Sites.ini"))
                {
                    string[] FLines = File.ReadAllLines("Sites.ini");

                    foreach (string line in FLines)
                    {
                        if (line.Contains("[ Title ] = "))
                        {
                            TrimedTitle = line.Replace("[ Title ] = ", "");
                            loadFile = new ListViewItem(TrimedTitle);
                        }
                        else if (line.Contains("[ Site URL ] = "))
                        {
                            TrimedURL = line.Replace("[ Site URL ] = ", "");
                            ListViewItem.ListViewSubItem lviURL = new ListViewItem.ListViewSubItem(loadFile, TrimedURL);
                            loadFile.SubItems.Add(lviURL);
                        }
                        else if (line.Contains("[ RSS URL ] = "))
                        {
                            TrimedRSS = line.Replace("[ RSS URL ] = ", "");
                            ListViewItem.ListViewSubItem lviRSS = new ListViewItem.ListViewSubItem(loadFile, TrimedRSS);
                            ListViewItem.ListViewSubItem lviStatus = new ListViewItem.ListViewSubItem(loadFile, "Incomplete");
                            loadFile.SubItems.Add(lviRSS);
                            loadFile.SubItems.Add(lviStatus);
                            sitesListView.Items.Add(loadFile);
                        }
                    }
                }

                return true;
            }
            catch
            {
                return false;
            }
        }
        public bool saveSites()
        {
            try
            {
                int iAmount = sitesListView.Items.Count;
                string sConfig = "";

                ListViewItem[] LviUsers = new ListViewItem[sitesListView.Items.Count];
                sitesListView.Items.CopyTo(LviUsers, 0);

                for (int i = 0; i < LviUsers.Length; i++)
                {
                    sConfig += "[ Title ] = " + LviUsers[i].Text + "\r\n[ Site URL ] = " + LviUsers[i].SubItems[1].Text + "\r\n[ RSS URL ] = " + LviUsers[i].SubItems[2].Text;
                }
                File.WriteAllText("Sites.ini", sConfig);

                return true;
            }
            catch
            {
                return false;
            }
        }

        private static string GetDefaultBrowserPath()
        {
            string key = @"http\shell\open\command";
            Microsoft.Win32.RegistryKey registryKey = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(key, false);
            // get default browser path
            return StringToPath(((string)registryKey.GetValue(null, null)));
        }

        private static string StringToPath(string str)
        {
            char chPathEnd = ' ';
            int diff = 0;
            if (str[0] == '"')
            {
                chPathEnd = '"';
                diff = 1;
            }
            for (int i = 1; i < str.Length; i++)
                if (str[i] == chPathEnd)
                    return str.Substring(diff, i - diff);
            return str;
        } 

        public bool PingReady
        {
            get
            {
                return pingReady;
            }
            set
            {
                pingReady = value;
            }
        }

        /*********************************************************/
        /*                      Multi-Index                      */
        /*********************************************************/

        /* Multi-Index - Variables */

        private Thread indexThread;

        /* Multi-Index - Events */
        
        private void indexButton_Click(object sender, EventArgs e)
        {
            indexThread = new Thread(new ThreadStart(indexSites));
            indexThread.Start();
        }

        /* Multi-Index - Methods */

        private string correctIndexURL(string URL)
        {
            string _URL = URL;

            if (_URL == "")
                return "EmptyURL";

            if (!_URL.EndsWith("/"))
                _URL += "/";

            if (!httpRadioButton.Checked && !wwwRadioButton.Checked)
            {
                return "address";
            }
            else if (httpRadioButton.Checked && !_URL.StartsWith("http://") || !_URL.StartsWith("www.") || !_URL.StartsWith("http://www."))
            {
                if(_URL.EndsWith(".com/") || _URL.EndsWith(".net/") || _URL.EndsWith(".org/") || _URL.EndsWith(".info/"))
                    _URL = "http://" + _URL;
            }
            else if (wwwRadioButton.Checked && !_URL.StartsWith("http://") || !_URL.StartsWith("www.") || !_URL.StartsWith("http://www."))
            {
                if(_URL.EndsWith(".com/") || _URL.EndsWith(".net/") || _URL.EndsWith(".org/") || _URL.EndsWith(".info/"))  
                    _URL = "http://www." + _URL;
            }
            else
                return "ERROR";
                
            return _URL;
        }

        private void indexSites()
        {
            try
            {
                string url = "";
                string mySite = correctIndexURL(urlTextBox.Text);

                indexBot IndexBox;

                if (mySite != "ERROR" && mySite != "address" && mySite != "EmptyURL")
                {
                    if (builtwithCheckBox.Checked)
                    {
                        url = "http://www.builtwith.com/default.aspx?" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "BuiltWith.com - Success\r\n";
                        else
                            statusTextBox.Text += "BuiltWith.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (toolsCheckBox.Checked)
                    {
                        url = "http://whois.uitat.ro/info/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Tools4Noobs.com - Success\r\n";
                        else
                            statusTextBox.Text += "Tools4Noobs.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (robtexCheckBox.Checked)
                    {
                        url = "http://www.robtex.com/dns/" + mySite + ".html";
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Robtex.com - Success\r\n";
                        else
                            statusTextBox.Text += "Robtex.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (statbrainCheckBox.Checked)
                    {
                        url = "http://www.statbrain.com/" + urlTextBox.Text;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Statbrain.com - Success\r\n";
                        else
                            statusTextBox.Text += "Statbrain.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (ainfoCheckBox.Checked)
                    {
                        url = "http://www.alexa.com/siteinfo/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Alexa.com (Info) - Success\r\n";
                        else
                            statusTextBox.Text += "Alexa.com (Info) - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (adataCheckBox.Checked)
                    {
                        url = "http://www.alexa.com/siteinfo/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Alexa.com (Data) - Success\r\n";
                        else
                            statusTextBox.Text += "Alexa.com (Data) - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (zimbioCheckBox.Checked)
                    {
                        url = "http://www.zimbio.com/search?q=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Zimbio.com - Success\r\n";
                        else
                            statusTextBox.Text += "Zimbio.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (networkCheckBox.Checked)
                    {
                        url = "http://www.networksolutions.com/whois-search/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "NetworkSolutions.com - Success\r\n";
                        else
                            statusTextBox.Text += "NetworkSolutions.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (advisorCheckBox.Checked)
                    {
                        url = "http://www.siteadvisor.cn/sites/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "SiteAdvisor.cn - Success\r\n";
                        else
                            statusTextBox.Text += "SiteAdvisor.cn - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (netcraftCheckBox.Checked)
                    {
                        url = "http://searchdns.netcraft.com/?position=limited&host=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "NetCraft.com - Success\r\n";
                        else
                            statusTextBox.Text += "NetCraft.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (dmozCheckBox.Checked)
                    {
                        url = "http://search.dmoz.org/cgi-bin/search?search=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Dmoz.org - Success\r\n";
                        else
                            statusTextBox.Text += "Dmoz.org - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (skaffeCheckBox.Checked)
                    {
                        statusTextBox.Text += "Skaffe.com - Success\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (whoisCheckBox.Checked)
                    {
                        url = "http://www.who.is/whois/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Whois.ws - Success\r\n";
                        else
                            statusTextBox.Text += "Whois.ws - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (analyticsCheckBox.Checked)
                    {
                        url = "http://siteanalytics.compete.com/" + urlTextBox.Text;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "SiteAnalytics.com - Success\r\n";
                        else
                            statusTextBox.Text += "SiteAnalytics.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (dtoolsCheckBox.Checked)
                    {
                        url = "http://whois.domaintools.com/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "DomainTools.com - Success\r\n";
                        else
                            statusTextBox.Text += "DomainTools.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (whoisxCheckBox.Checked)
                    {
                        url = "http://whoisx.co.uk/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Whoisx.co.uk - Success\r\n";
                        else
                            statusTextBox.Text += "Whoisx.co.uk - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    /*if (aboutusCheckBox.Checked)
                    {
                        url = "http://www.aboutus.org/" + urlTextBox.Text;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "AboutUs.org - Success\r\n";
                        else
                            statusTextBox.Text += "AboutUs.org - Failed\r\n";
                     
                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }*/

                    if (quantcastCheckBox.Checked)
                    {
                        url = "http://www.quantcast.com/" + urlTextBox.Text;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Quantcast.com - Success\r\n";
                        else
                            statusTextBox.Text += "Quantcast.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (whoisdotCheckBox.Checked)
                    {
                        url = "http://www.who.is/whois-com/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Who.is - Success\r\n";
                        else
                            statusTextBox.Text += "Who.is - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (cubestatCheckBox.Checked)
                    {
                        url = "http://www.cubestat.com/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "CubeStat.com - Success\r\n";
                        else
                            statusTextBox.Text += "CubeStat.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (whoisyaCheckBox.Checked)
                    {
                        url = "http://www.whoisya.com/" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Whoisya.com - Success\r\n";
                        else
                            statusTextBox.Text += "Whoisya.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (yahooCheckBox.Checked)
                    {
                        url = "http://search.yahoo.com/search?p=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "Yahoo.com - Success\r\n";
                        else
                            statusTextBox.Text += "Yahoo.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (joeantCheckBox.Checked)
                    {
                        url = "http://www.joeant.com/DIR/search.php?keywords=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "JoeAnt.com - Success\r\n";
                        else
                            statusTextBox.Text += "JoeAnt.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (bluefindCheckBox.Checked)
                    {
                        statusTextBox.Text += "BlueFind.com - Success\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (goguidesCheckBox.Checked)
                    {
                        url = "http://www.goguides.org/search?q=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "GoGuides.org - Success\r\n";
                        else
                            statusTextBox.Text += "GoGuies.org - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (sevenseekCheckBox.Checked)
                    {
                        url = "http://www.sevenseek.com/search.php?q=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "SevenSeek.com - Success\r\n";
                        else
                            statusTextBox.Text += "SevenSeek.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (yearCheckBox.Checked)
                    {
                        url = "http://www.thisisouryear.com/index.html?p=search&q=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "ThisIsOurYear.com - Success\r\n";
                        else
                            statusTextBox.Text += "ThisIsOurYear.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    if (smartCheckBox.Checked)
                    {
                        url = "http://www.looksmart.com/search-sponsored-listings?key=" + mySite;
                        IndexBox = new indexBot(url);

                        if (IndexBox.Index())
                            statusTextBox.Text += "LookSmart.com - Success\r\n";
                        else
                            statusTextBox.Text += "LookSmart.com - Failed\r\n";

                        statusTextBox.SelectionStart = statusTextBox.Text.Length;
                        statusTextBox.ScrollToCaret();
                        statusTextBox.Refresh();
                    }

                    statusTextBox.Text += "\r\nCompleted!";

                    statusTextBox.SelectionStart = statusTextBox.Text.Length;
                    statusTextBox.ScrollToCaret();
                    statusTextBox.Refresh();
                }
                else if (mySite == "ERROR" || mySite == "EmptyURL")
                    MessageBox.Show("Enter a valid URL - EG: MySite.com \r\n\r\nPlease note we only support: .com | .net | .org | .info", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                else if (mySite == "address")
                    MessageBox.Show("Please select one of the address options", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            catch (Exception err)
            {
                MessageBox.Show(err.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            indexThread.Abort();
            indexThread.Join();
        }

        private void checkallCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            if (checkallCheckBox.Checked)
            {
                foreach (Control ctl in indexGroupBox.Controls)
                {
                    if (ctl is CheckBox)
                        ((CheckBox)ctl).Checked = true;
                }

                checkallCheckBox.Text = "De-select All";
            }
            else
            {
                foreach (Control ctl in indexGroupBox.Controls)
                {
                    if (ctl is CheckBox)
                        ((CheckBox)ctl).Checked = false;
                }

                checkallCheckBox.Text = "Select All";
            }
        }

        private void mainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            Environment.Exit(0);
        }

        private void mmdWeb_Click(object sender, EventArgs e)
        {
            Process p = new Process();

            p.StartInfo.FileName = GetDefaultBrowserPath();

            p.StartInfo.Arguments = "http://www.moneymakerdiscussion.com";

            p.Start();
        }
    }
}
Download: Multi-Task.rar
 

Elite91

Very Active Members
Joined
Jun 6, 2011
Messages
334
Reaction score
0
Points
16
Thanks genius ,Will Try This One :tee:
 

LiQuid.Ace

Member
Joined
Oct 5, 2011
Messages
33
Reaction score
0
Points
6
NP, Let me know if anything doesn't work. Been a while since i used it.
 

bevjones

Make Money Online
Joined
Jun 28, 2009
Messages
492
Reaction score
2
Points
17
Even with the source code you cannot make this application as you do not have 2 of the classes mentioned, pingbot & indexbot.