我正在设计一个互联网机器人,我需要帮助 [英] I'm desinging a internet bot and I need help

查看:71
本文介绍了我正在设计一个互联网机器人,我需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果此信息不足,我可以为您提供更多信息.

If this info isnt enough I can provide you with more.

Form1:

使用系统;
使用System.Collections.Generic;
使用System.ComponentModel;
使用System.Data;
使用System.Drawing;
使用System.Linq;
使用System.Text;
使用System.Threading.Tasks;
使用System.Windows.Forms;

命名空间WebClickBot
{
   公共局部类Form1:Form
    {
      公共Form1()
       {
           InitializeComponent();
       }

       private void textBox1_TextChanged(object sender,EventArgs e)//定义X的数量(最小1,最大100万亿)
       {
           
       }

      私有无效label1_Click(对象发送者,EventArgs e)
       {
           
       }

       private void label4_Click(对象发送者,EventArgs e)
       {

       }

       private void button1_Click(object sender,EventArgs e)//启动和停止漫游器
       {

       }

       private void timer1_Tick(object sender,EventArgs e)//将X数量的漫游器连接到目标网站5秒钟,查找并单击在textBox3中定义的文本
       {
           SendKeys.Send(textBox1.Text);
           System.Threading.Thread.Sleep(5000);
       }

       private void textBox2_TextChanged(object sender,EventArgs e)//定义目标网站
       {

       }

       private void textBox3_TextChanged(object sender,EventArgs e)//定义程序搜索的内容
       {

       }
    }
}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WebClickBot
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e) //defines the amount of X (min 1, max 100 trillion)
        {
            
        }

        private void label1_Click(object sender, EventArgs e)
        {
            
        }

        private void label4_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e) //start and stops bots
        {

        }

        private void timer1_Tick(object sender, EventArgs e) //connects X amount of bots to the target website for 5 seconds, finds and clicks text definided inside textBox3
        {
            SendKeys.Send(textBox1.Text);
            System.Threading.Thread.Sleep(5000);
        }

        private void textBox2_TextChanged(object sender, EventArgs e) //defines the target website
        {

        }

        private void textBox3_TextChanged(object sender, EventArgs e) //defines what the program searches for
        {

        }
    }
}

Form1.desing:

Form1.Desing:

命名空间WebClickBot
{
   局部类Form1
    {
       ///< summary>
       ///必需的设计器变量.
       ///</summary>
      私有System.ComponentModel.IContainer组件= null;

       ///< summary>
       ///清理所有正在使用的资源.
       ///</summary>
       ///< param name =" dispose>>如果应处置受管资源,则为true;否则为false.否则为false.</param>
      受保护的重写void Dispose(布尔处置)
       {
           if(处置&&(组件!= null))
           {
                             components.Dispose();
           }
           base.Dispose(处置);
       }

       #region Windows窗体设计器生成的代码

       ///< summary>
       ///支持Designer的必需方法-请勿修改
       ///使用代码编辑器将此方法的内容.
       ///</summary>
      私有void InitializeComponent()
       {
           this.components = new System.ComponentModel.Container();
           System.ComponentModel.ComponentResourceManager资源=新的System.ComponentModel.ComponentResourceManager(typeof(Form1));
           this.textBox1 =新的System.Windows.Forms.TextBox();
           this.label1 =新的System.Windows.Forms.Label();
           this.textBox2 =新的System.Windows.Forms.TextBox();
           this.label2 =新的System.Windows.Forms.Label();
           this.textBox4 =新的System.Windows.Forms.TextBox();
           this.label4 =新的System.Windows.Forms.Label();
           this.timer1 =新的System.Windows.Forms.Timer(this.components);
           this.button1 =新的System.Windows.Forms.Button();
           this.textBox3 =新的System.Windows.Forms.TextBox();
           this.label3 =新的System.Windows.Forms.Label();
           this.SuspendLayout();
           //
           //textBox1
           //
           this.textBox1.Location =新的System.Drawing.Point(12,12);
           this.textBox1.Name ="textBox1";
           this.textBox1.Size =新的System.Drawing.Size(109,20);
           this.textBox1.TabIndex = 0;
           this.textBox1.TextChanged + =新的System.EventHandler(this.textBox1_TextChanged);
           //
           //label1
           //
           this.label1.AutoSize = true;
           this.label1.Location =新的System.Drawing.Point(127,15);
           this.label1.Name ="label1";
           this.label1.Size =新的System.Drawing.Size(31,13);
           this.label1.TabIndex = 1;
           this.label1.Text ="/BPs";
           //
           //textBox2
           //
           this.textBox2.Location =新的System.Drawing.Point(12,39);
           this.textBox2.Name ="textBox2";
           this.textBox2.Size = new System.Drawing.Size(109,20);
           this.textBox2.TabIndex = 2;
           this.textBox2.TextChanged + =新的System.EventHandler(this.textBox2_TextChanged);
           //
           //label2
           //
           this.label2.AutoSize = true;
           this.label2.Location =新的System.Drawing.Point(127,42);
           this.label2.Name ="label2";
           this.label2.Size =新的System.Drawing.Size(77,13);
           this.label2.TabIndex = 3;
           this.label2.Text ="TargetWebsite";
           //
           //textBox4
           //
           this.textBox4.Location =新的System.Drawing.Point(12,65);
           this.textBox4.Name ="textBox4";
           this.textBox4.Size = new System.Drawing.Size(109,20);
           this.textBox4.TabIndex = 5;
           //
           //label4
           //
           this.label4.AutoSize = true;
           this.label4.Location =新的System.Drawing.Point(127,68);
           this.label4.Name ="label4";
           this.label4.Size =新的System.Drawing.Size(33,13);
           this.label4.TabIndex = 7;
           this.label4.Text ="/MPs";
           this.label4.Click + =新的System.EventHandler(this.label4_Click);
           //
           //timer1
           //
           this.timer1.Tick + =新的System.EventHandler(this.timer1_Tick);
           //
           //button1
           //
           this.button1.Location =新的System.Drawing.Point(240,185);
           this.button1.Name ="button1";
           this.button1.Size =新的System.Drawing.Size(109,40);
           this.button1.TabIndex = 9;
           this.button1.Text =开始/停止";
           this.button1.UseVisualStyleBackColor = true;
           this.button1.Click + =新的System.EventHandler(this.button1_Click);
           //
           //textBox3
           //
           this.textBox3.Location =新的System.Drawing.Point(12,92);
           this.textBox3.Name ="textBox3";
           this.textBox3.Size = new System.Drawing.Size(109,20);
           this.textBox3.TabIndex = 11;
           this.textBox3.TextChanged + =新的System.EventHandler(this.textBox3_TextChanged);
           //
           //label3
           //
           this.label3.AutoSize = true;
           this.label3.Location =新的System.Drawing.Point(127,95);
           this.label3.Name ="label3";
           this.label3.Size =新的System.Drawing.Size(145,13);
           this.label3.TabIndex = 12;
           this.label3.Text =查找并单击网站";
           //
           //Form1
           //
           this.AutoScaleDimensions = new System.Drawing.SizeF(6F,13F);
           this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
           this.ClientSize = new System.Drawing.Size(693,501);
           this.Controls.Add(this.label3);
           this.Controls.Add(this.textBox3);
           this.Controls.Add(this.button1);
           this.Controls.Add(this.label4);
           this.Controls.Add(this.textBox4);
           this.Controls.Add(this.label2);
           this.Controls.Add(this.textBox2);
           this.Controls.Add(this.label1);
           this.Controls.Add(this.textBox1);
           this.Icon =((System.Drawing.Icon)(resources.GetObject("$ this.Icon"))));
           this.Name ="Form1";
           this.Text ="WebClickBot";
           this.ResumeLayout(false);
           this.PerformLayout();

       }

       #endregion
      私有System.Windows.Forms.Label label1;
      私有System.Windows.Forms.Label label2;
      私有System.Windows.Forms.Label label4;
      私有System.Windows.Forms.Timer timer1;
      私人System.Windows.Forms.Button button1;
      公共System.Windows.Forms.TextBox textBox1;
      公共System.Windows.Forms.TextBox textBox2;
      公共System.Windows.Forms.TextBox textBox4;
      私有System.Windows.Forms.Label label3;
      公共System.Windows.Forms.TextBox textBox3;
    }
}

namespace WebClickBot
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.label2 = new System.Windows.Forms.Label();
            this.textBox4 = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.button1 = new System.Windows.Forms.Button();
            this.textBox3 = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.SuspendLayout();
            //
            // textBox1
            //
            this.textBox1.Location = new System.Drawing.Point(12, 12);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(109, 20);
            this.textBox1.TabIndex = 0;
            this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(127, 15);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(31, 13);
            this.label1.TabIndex = 1;
            this.label1.Text = "/BPs";
            //
            // textBox2
            //
            this.textBox2.Location = new System.Drawing.Point(12, 39);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(109, 20);
            this.textBox2.TabIndex = 2;
            this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(127, 42);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(77, 13);
            this.label2.TabIndex = 3;
            this.label2.Text = "TargetWebsite";
            //
            // textBox4
            //
            this.textBox4.Location = new System.Drawing.Point(12, 65);
            this.textBox4.Name = "textBox4";
            this.textBox4.Size = new System.Drawing.Size(109, 20);
            this.textBox4.TabIndex = 5;
            //
            // label4
            //
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(127, 68);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(33, 13);
            this.label4.TabIndex = 7;
            this.label4.Text = "/MPs";
            this.label4.Click += new System.EventHandler(this.label4_Click);
            //
            // timer1
            //
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            //
            // button1
            //
            this.button1.Location = new System.Drawing.Point(240, 185);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(109, 40);
            this.button1.TabIndex = 9;
            this.button1.Text = "Start/Stop";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // textBox3
            //
            this.textBox3.Location = new System.Drawing.Point(12, 92);
            this.textBox3.Name = "textBox3";
            this.textBox3.Size = new System.Drawing.Size(109, 20);
            this.textBox3.TabIndex = 11;
            this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(127, 95);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(145, 13);
            this.label3.TabIndex = 12;
            this.label3.Text = "Find and click on the website";
            //
            // Form1
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(693, 501);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.textBox3);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.textBox4);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.textBox2);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.textBox1);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "Form1";
            this.Text = "WebClickBot";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Timer timer1;
        private System.Windows.Forms.Button button1;
        public System.Windows.Forms.TextBox textBox1;
        public System.Windows.Forms.TextBox textBox2;
        public System.Windows.Forms.TextBox textBox4;
        private System.Windows.Forms.Label label3;
        public System.Windows.Forms.TextBox textBox3;
    }
}

推荐答案

是吗?您有问题吗?
So? Do you have a question?


这篇关于我正在设计一个互联网机器人,我需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆