HTML Code:
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using System.Net.NetworkInformation;
namespace Autoclickerd
{
class Program
{
[DllImport("user32.dll")]
public static extern bool GetCursorPos(out Point lpPoint);
[DllImport("User32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
public static extern void mouse_event(uint dwFlags, int dx, int dy, uint cButtons, uint dwExtraInfo);
static void Main(string[] args)
{
bool clicking = true;
System.Threading.Thread.Sleep(5000);
while (clicking)
{
Point cursor = getCursorPosition();
mouse_event(0x08 | 0x10, (int)cursor.x, (int)cursor.y, 0, 0);
System.Threading.Thread.Sleep(100);
Console.WriteLine("Good");
}
}
public struct Point
{
public float x { get; set; }
public float y { get; set; }
}
private static Point getCursorPosition()
{
Point p;
GetCursorPos(out p);
return p;
}
}
}







