fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18. string[] Base = new string[]
  19. {
  20. "へそクリック",
  21. "HESO-CLICK",
  22. };
  23. string[] Sub = new string[]
  24. {
  25. "石のヤタベ",
  26. "石のやたべ",
  27. "慶応",
  28. "書籍",
  29. "栃木",
  30. "詐欺",
  31. "トンズラ",
  32. "横浜",
  33. "はまれぽ",
  34. "ポイントサイト",
  35. "小額詐欺",
  36. "被害",
  37.  
  38. };
  39. string google = "http://w...content-available-to-author-only...o.jp/search?q=";
  40. Timer timer1 = new Timer();
  41. TextBox textBox1 = new TextBox();
  42. SplitContainer splitContainer1 = new SplitContainer();
  43. int countbase = 1000;
  44. int BaseNum = 0;
  45. int select = 0;
  46. private void Form1_Load(object sender, EventArgs e)
  47. {
  48. splitContainer1.Dock = DockStyle.Fill;
  49. splitContainer1.Orientation = Orientation.Horizontal;
  50. this.Controls.Add(splitContainer1);
  51.  
  52. textBox1.Multiline = true;
  53. textBox1.Dock = DockStyle.Fill;
  54. //this.Controls.Add(textBox1);
  55. splitContainer1.Panel1.Controls.Add(textBox1);
  56.  
  57. //this.urlset();
  58. timer1.Interval = countbase;
  59. timer1.Tick += new EventHandler(timer1_Tick);
  60. timer1.Enabled = true;
  61. }
  62. Random rnd = new Random();
  63. void timer1_Tick(object sender, EventArgs e)
  64. {
  65. timer1.Enabled = false;
  66. this.urlset();
  67. timer1.Interval = 10* countbase+ rnd.Next(0, 10) * countbase;
  68. timer1.Enabled = true;
  69. }
  70. void urlset()
  71. {
  72. //int SubNum = rnd.Next(2, Sub.Length - 1);
  73. int SubNum = rnd.Next(1, 3);
  74. string url = google
  75. + Base[BaseNum];
  76. for (int i = 0; i < SubNum; i++)
  77. {
  78. url += "+" + Sub[rnd.Next(0, Sub.Length - 1)];
  79. }
  80. url += Environment.NewLine;
  81. textBox1.AppendText(url);
  82.  
  83. if (select == 0)
  84. {
  85. WebBrowser wb = new WebBrowser();
  86. wb.Dock = DockStyle.Fill;
  87. wb.Navigate(url);
  88. splitContainer1.Panel2.Controls.Clear();
  89. splitContainer1.Panel2.Controls.Add(wb);
  90. }
  91. else
  92. {
  93. System.Diagnostics.Process.Start(url);
  94. }
  95. BaseNum ^= 1;
  96. }
  97. }
  98. }
  99.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty