0

I am making a program that is designed to send mouse clicks to locations (like an auto clicker but more advanced). I need this to be triggered by a click event. Is it possible to make the click only apply inside a the form along the same principle of a runescape bot? I wish to use the same principle but for a different program. Here is the form I wish for it to apply to the form:

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 web_clicker
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
John Saunders
  • 160,644
  • 26
  • 247
  • 397
Gerard2202
  • 151
  • 6
  • 18

1 Answers1

0

I don't really understand your problem. But as I understand you try to get the number of clicks in something on form ? If yes so that's what I should do :

// Definition counter click
private int counter;

// In the C'tor 
counter =0;

// In event click on button or picture or everything else
counter++;

And now you have the number of clicking. If you don't mean to this answer me I'll try to help you.

RonYamin
  • 77
  • 2
  • 11