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 WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } string[] Base = new string[] { "へそクリック", "HESO-CLICK", }; string[] Sub = new string[] { "石のヤタベ", "石のやたべ", "慶応", "書籍", "栃木", "詐欺", "トンズラ", "横浜", "はまれぽ", "ポイントサイト", "小額詐欺", "被害", }; string google = "http://w...content-available-to-author-only...o.jp/search?q="; Timer timer1 = new Timer(); TextBox textBox1 = new TextBox(); SplitContainer splitContainer1 = new SplitContainer(); int countbase = 1000; int BaseNum = 0; int select = 0; private void Form1_Load(object sender, EventArgs e) { splitContainer1.Dock = DockStyle.Fill; splitContainer1.Orientation = Orientation.Horizontal; this.Controls.Add(splitContainer1); textBox1.Multiline = true; textBox1.Dock = DockStyle.Fill; //this.Controls.Add(textBox1); splitContainer1.Panel1.Controls.Add(textBox1); //this.urlset(); timer1.Interval = countbase; timer1.Tick += new EventHandler(timer1_Tick); timer1.Enabled = true; } Random rnd = new Random(); void timer1_Tick(object sender, EventArgs e) { timer1.Enabled = false; this.urlset(); timer1.Interval = 10* countbase+ rnd.Next(0, 10) * countbase; timer1.Enabled = true; } void urlset() { //int SubNum = rnd.Next(2, Sub.Length - 1); int SubNum = rnd.Next(1, 3); string url = google + Base[BaseNum]; for (int i = 0; i < SubNum; i++) { url += "+" + Sub[rnd.Next(0, Sub.Length - 1)]; } url += Environment.NewLine; textBox1.AppendText(url); if (select == 0) { WebBrowser wb = new WebBrowser(); wb.Dock = DockStyle.Fill; wb.Navigate(url); splitContainer1.Panel2.Controls.Clear(); splitContainer1.Panel2.Controls.Add(wb); } else { System.Diagnostics.Process.Start(url); } BaseNum ^= 1; } } }