Skip to content

About

A tiny cross-platform autoclicker with human-like timing

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

FeatherClick

A tiny cross-platform autoclicker with human-like timing.

Single binary, no background services.

Features

  • Human-like timing — fixed interval, uniform random between a min and max, or Gaussian (mean and sigma, within ±4 sigma), all in milliseconds.
  • Random pixels in a range — every click can land anywhere in a box, an ellipse, or a Gaussian spread around the target.
  • Limits that stop it for you — stop after N clicks, after S seconds, or as soon as you move the pointer away from the click point.
  • Click styles — left / right / middle, single, double, or press-and-hold.
  • Global hotkeys — start/stop and pick-the-position bindings, rebindable in the app, with the current binding always shown next to the button.
  • Minimal UI — one window, dark or light, optionally always-on-top, and it repaints only when something changes.
  • Headless mode — the same engine driven from the command line, for scripts and machines without a display server.

Download

Grab the archive for your platform from Releases:

Platform Archive Notes
Windows 10/11 featherclick-*-windows-x86_64.zip Unzip and run featherclick.exe.
macOS 11+ featherclick-*-macos-universal.zip Universal (Apple silicon + Intel).
Linux x86_64 featherclick-*-linux-x86_64.tar.gz Needs an X11 or Wayland session.

First run on macOS

The build is not notarised. Right-click the app and choose Open the first time, or clear the quarantine flag:

xattr -dr com.apple.quarantine /Applications/FeatherClick.app

macOS also requires permission to send synthetic clicks: System Settings → Privacy & Security → Accessibility, and enable FeatherClick. Without it the clicks are silently dropped by the system.

First run on Linux

The GUI needs libxkbcommon and, for X11, libxkbcommon-x11. Install libxkbcommon0 and libxkbcommon-x11-0 on Debian/Ubuntu, or libxkbcommon and libxkbcommon-x11 on Fedora and Arch.

tar -xzf featherclick-*-linux-x86_64.tar.gz
cd featherclick-*-linux-x86_64
install -Dm755 featherclick ~/.local/bin/featherclick
# optional desktop entry + icon
install -Dm644 featherclick.desktop ~/.local/share/applications/featherclick.desktop
install -Dm644 featherclick.png ~/.local/share/icons/hicolor/256x256/apps/featherclick.png

Platform support

Windows 10/11 macOS 11+ Linux (X11) Linux (Wayland)
Clicking ✅ ✅ (Accessibility permission) ✅ ✅ wlroots, or the portal on GNOME and KDE
Global hotkeys ✅ ✅ ✅ ✅ with access to /dev/input
Picking a position ✅ ✅ ✅ ✅ via XWayland

On GNOME and KDE, clicking uses the RemoteDesktop portal. Permission is requested when a run starts and the grant is saved for later runs. If the portal fails, XWayland is used when available. Portal coordinates use the stream’s logical layout.

On wlroots, clicking uses the compositor's virtual-pointer protocol, which wlroots-based compositors (Sway, Hyprland) provide. Fixed points map across the entire xdg-output logical layout, including monitors left of or above the origin and fractional scaling. On compositors without virtual-pointer support, the portal is used, with XWayland as a fallback. A click is sent to one server. When both Wayland and X11 are available, the virtual pointer clicks and X11 is only asked where the pointer is, because Wayland has no protocol for that. Pick, cursor jitter and stop-on-move need that reading and say so when it is missing. Hotkeys are read from /dev/input/event* (the input group on most distributions). Wayland has no per-key grab, so the focused window still receives the key. The compositor does not report the window position, so a fixed point is not compared with the window; pointer mode waits while the pointer is over it.

Using the window

  1. Pick a Button and Style.
  2. Choose a Timing mode. Random (uniform) is the safest default for anything watching for automation; Human-like gives a Gaussian spread.
  3. Choose a Target:
    • Pointer clicks wherever the pointer already is and never moves it, so you can keep repositioning while it runs. It waits while the pointer is over the FeatherClick window.
    • Fixed returns to a point before every click, and waits while that point is covered by the window. Type coordinates, or press Pick and the position is taken after a 3 second countdown, or press the pick hotkey (F7 by default) while hovering the target.
  4. Optionally add Jitter — the spread around the target, in pixels.
  5. Set Limits if you want the run to end by itself.
  6. Press Start (or the toggle hotkey).

Editing settings while it runs takes effect on the next start; the snapshot is taken once so a run stays consistent.

Default hotkeys: F6 start/stop, F7 pick the pointer position. Click a binding and press a new combination to change it; Esc cancels, × clears it.

Headless mode

Any of the run options below skips the window:

# 20 clicks, one every 100 ms, at a fixed point with a 25 px spread
featherclick --headless --clicks 20 --interval 100 --at 640,360 --jitter 25

# click at the pointer for 30 seconds
featherclick --headless --seconds 30 --button right --quiet

# run with whatever the saved settings say, 100 clicks
featherclick --headless --clicks 100
Option Meaning
--headless Do not open a window.
--clicks <N> Stop after N clicks (0 = unlimited).
--seconds <S> Stop after S seconds (0 = unlimited).
--interval <MS> Fixed interval, overriding the saved timing mode.
--at <X,Y> Click a fixed screen point.
--jitter <PX> Randomise the point by up to ±PX pixels.
--button <left|right|middle> Which button to click.
--delay <MS> Wait before the first click. The time limit starts afterwards.
--quiet Print only the final summary.
--help, --version Usage and version.

Style, jitter shape, stop-on-move and the other options come from the saved settings. Passing --clicks or --seconds replaces both saved limits, so --seconds 30 runs for 30 seconds even if the config also has a click cap, and --clicks 20 is not cut short by a saved time limit. A start delay finishes before that time limit starts, so --delay 2000 --seconds 1 still clicks.

Exit status is 0 for a normal stop — including limits and Ctrl+C — 1 if the input backend could not be reached or failed during a run, and 2 for invalid arguments. A second Ctrl+C exits immediately.

Coordinates are physical screen pixels on Windows and X11. On Wayland they are points in the compositor’s logical layout. Monitors left of or above the origin can have negative coordinates.

Configuration

Settings are saved automatically, and the file is plain JSON you can edit directly:

Platform Path
Windows %APPDATA%\featherclick\config.json
macOS ~/Library/Application Support/featherclick/config.json
Linux ~/.config/featherclick/config.json
{
  "button": "left",          // left | right | middle
  "style": "single",         // single | double | hold
  "hold_ms": 40,

  "timing": "uniform",       // fixed | uniform | normal
  "interval_ms": 100,        // fixed
  "interval_min_ms": 40,     // uniform
  "interval_max_ms": 120,
  "interval_mean_ms": 100,   // normal (human-like)
  "interval_std_ms": 25,
  "start_delay_ms": 0,

  "position": "cursor",      // cursor | fixed
  "point": [0, 0],           // fixed target, screen pixels
  "jitter": "off",           // off | rectangle | ellipse | normal
  "jitter_x": 4,
  "jitter_y": 4,

  "max_clicks": 0,           // 0 = unlimited
  "max_seconds": 0,          // 0 = unlimited
  "stop_on_move_px": 0,      // 0 = off

  "hotkey_toggle": "F6",
  "hotkey_capture": "F7",

  "theme": "dark",           // dark | light
  "always_on_top": false
}

Missing or unknown fields are ignored, so a partial file still loads. Values are clamped into usable ranges on load — for example an inverted min/max pair is swapped rather than rejected. A file that does not parse is left untouched. The window opens on defaults and reports the error; a headless run exits with status 1 instead of clicking with those defaults. The first save after an edit copies the old file to config.json.bak and then replaces it.

How it works

Timing. The click loop sleeps in short slices and only spins for the last fraction of a millisecond, using the overshoot it measured on the previous sleep to size that spin. On Windows it also raises the system timer resolution to 1 ms for the duration of a run, because the default scheduler tick is ~15.6 ms. Measured on Windows 11 against an OS-level mouse hook, a 100 ms fixed interval held to 96–109 ms per click, and a 40–120 ms uniform setting produced 40.3–120.3 ms with a flat distribution and mean 79.0 ms.

The rate ceiling. Waking a sleeping thread costs the OS about a millisecond of granularity, so intervals below a few milliseconds do not run at the requested rate: asking for 1 ms measured 193 clicks/s. At that rate the loop used 3.1% of one core, and at 10 clicks/s the processor time was too small to measure at all.

Precision features are not decoration. The click cap is checked as soon as the final click is sent. A time limit, a pending stop, headless Ctrl+C and stop-on-move are sampled every 25 ms sleep slice, so each is noticed within one slice instead of at the next click. Stop-on-move watches the point the pointer was left at, so moving onto a fixed target is not the user taking the mouse. A hold releases the button when that stop arrives.

Lightness. One process, one worker thread, an egui window that repaints only while a run is active or a countdown is on screen: 10 seconds of idle time measured 0.0000 s of processor time, and 100 clicks over 10 seconds also measured 0.0000 s. A release build is a single ~5.8 MB binary that links no system GUI toolkit, no web view and no scripting engine. Accessibility tree support is compiled out to keep the binary small, which means the UI is not exposed to screen readers.

State. The engine snapshots your settings when a run starts and clamps them the same way a load does, so a run cannot change shape halfway through. The window writes the file 400 ms after the last edit, and on close if that edit is still unsaved. It does not write on launch. The new contents are flushed before the file is replaced, so a crash cannot leave it half-written.

Building

cargo build --release
cargo test

Linux needs the usual winit build dependencies:

sudo apt install pkg-config libxkbcommon-dev libxkbcommon-x11-0 libwayland-dev libx11-dev \
  libxcursor-dev libxrandr-dev libxi-dev libgl1-mesa-dev

The icon is generated rather than checked in by hand:

python tools/make_icon.py   # rewrites assets/icon.ico, icon.rgba and icon.png

CI builds and tests all three platforms on every push, and runs the engine on a virtual X display to prove the input backend actually connects.

Limitations

  • Global hotkeys use an OS-level grab on Windows, macOS, and X11, so the key does not reach the focused application. On Wayland, FeatherClick reads /dev/input instead (the input group), and the focused application still receives the key.
  • No macro recording, sequences, or keyboard keys — FeatherClick clicks, and nothing else.
  • Windows and macOS builds are unsigned. Windows SmartScreen may warn on first run; choose More info → Run anyway.

Responsible use

Automating input may violate the terms of service of games, websites, and online services, and using it to gain an unfair advantage can get an account banned. Some places also prohibit unattended click generation outright. Check the rules that apply to you before using this, and prefer the built-in limits — click caps, time caps, and stop-on-move — over leaving it running unattended.

License

MIT — see LICENSE.

About

A tiny cross-platform autoclicker with human-like timing

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages