An ultra-lightweight, hardware-timed click automation engine built with native Win32 APIs for Windows.
Ultimate AutoClicker is a high-precision, zero-drift mouse automation utility engineered for demanding tasks, game automation, and testing workflows.
Written in pure C++ against raw Windows APIs, it utilizes kernel high-resolution timers, hardware QueryPerformanceCounter scheduling, and Per-Monitor V2 DPI awareness. It consumes 0% CPU when idle, operates with sub-microsecond timing accuracy at rates exceeding 1,000 to 10,000+ CPS, and runs on less than 1 MB of RAM.
If you have MinGW-w64 / GCC installed:
- Double-click
build.batin the project directory. - The script compiles
resource.rcand linksUltimateAutoClicker.exeautomatically with aggressive binary optimizations.
From your terminal inside the project directory:
windres resource.rc -O coff -o resource.res
g++ main.cpp resource.res -o UltimateAutoClicker.exe -mwindows -lcomctl32 -static -s -Os -fno-exceptions -fno-rtti-
Master Grid Scheduling: Employs
QueryPerformanceCounter(QPC) absolute time grid tracking. Successive clicks are anchored to hardware timestamp deadlines, eliminating cumulative delay drift entirely. - Single-Core Thread Affinity: The time-critical worker thread is pinned to the primary processor core, preventing cross-core cache invalidation and QPC timing jitter.
-
Adaptive Syscall Batching: For sub-millisecond rates (
$\le 1,\text{ms}$ or$\ge 1,000,\text{CPS}$ ), mouse down and up events are batched into a single atomicSendInputdriver packet, avoiding Windows input queue congestion.
- Dynamic Point Sequence: Set multiple target coordinates across your screens. The engine cycles through each position in sequence on consecutive clicks.
- Interactive Screen Picker: Click Pick from Screen... to record exact coordinates directly with your mouse.
-
Manual Input: Enter precise
$X$ and$Y$ coordinates and manage your queue with Add, Delete Selected, and Clear All. -
Atomic Sub-Pixel Coordinates: Automatically embeds
MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_VIRTUALDESKinto click packets, ensuring clicks land on target coordinates even during high-speed multi-monitor cursor jumps.
- 100% Consistent Scaling: Fully declared
PerMonitorV2DPI awareness via application manifest and runtime API initialization. - Coordinates remain accurate on displays scaled at 125%, 150%, 175%, or 200%+.
- Window layout dimensions dynamically adjust via
AdjustWindowRectExso no controls are clipped.
- Enter decimals or large numbers across Hours, Minutes, Seconds, Milliseconds, and Microseconds (
$\mu\text{s}$ ) fields. - Pressing Enter inside any box immediately normalizes and distributes values across all unit fields.
-
Set Interval: Specify your interval across the time boxes and press Enter to commit. Use
$\mu\text{s}$ for sub-millisecond intervals. - Select Mouse Button & Type: Choose Left, Right, or Middle button, and Single or Double click.
- Set Repeat Limit: Choose Repeat until stopped or set a fixed click count.
-
Choose Location Mode:
- Current Location: Clicks wherever your pointer is positioned.
-
Specific Location: Clicks a single static
$(X, Y)$ coordinate. - Consecutive Points: Click Manage Points... to configure a multi-target queue.
- Start / Stop: Press your global hotkey (default: F6) or click the main button. Click Change Hotkey... to assign a new hotkey.
| Feature | Implementation |
|---|---|
| Language | Native C++ (Win32 / C++20 clean) |
| Idle CPU Usage | 0.0% (Kernel Waitable Events) |
| Active Timing | Hardware QPC + High-Resolution Hybrid Wait |
| DPI Awareness | Per-Monitor V2 (DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) |
| Multi-Monitor Support | Full virtual desktop coordinate normalization |
| Memory Footprint | < 1 MB |
| Dependencies | Zero external runtime DLLs (Statically linked) |
License (Click to expand)
This project is open-source and distributed under the MIT License.