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();
}
}
}