Skip to content

About

Free Windows auto clicker: record click routines, click wherever an image appears, sequences and hold/key actions, with safety stops on by default. Single .exe.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Windows Autoclicker logo

Windows Autoclicker

A fast, careful autoclicker for Windows: pick a spot, set the pace, press F6.

Pixel-precise clicking with burst mode, timing variation, named profiles and global hotkeys,
built around safety stops that are on by default.


Download for Windows

Single .exe · no install, no Python · Windows 10 and 11 · all releases



CI Release Python Platform License: CC BY-NC 4.0 Sponsor


Windows Autoclicker main window: a large Start button with Clicks, Runtime and Rate readouts, the Target and Click panels side by side, and the collapsed Timing and Safety panels

Why this one · Quick start · Features · How timing works · Sequences · Image targets · Command line · Hotkeys · Safety · Settings · Troubleshooting · Contributing


Features

Pick and click

Click a fixed spot (type X/Y, or Pick with a live coordinate readout on any monitor), or wherever the cursor is, or a sequence of clicks, holds, key presses and waits, or wherever a captured image appears. Save the spot and its click settings as named profiles, and import or export them as a file.

Precise timing

Intervals in milliseconds or seconds, down to 0 ms, with optional ± variation so the cadence isn't perfectly regular.

Burst mode

Fire several clicks in quick succession, then wait the interval. Left, right or middle button; single or double click. Or hold the button for a set time, or press a key such as F5 instead of clicking.

Safety on by default

Corner failsafe, emergency stop, click and time limits, a runaway-speed guard, and an optional pause when your target window loses focus.

Global hotkeys

F6 start, F7 stop, Esc emergency stop, all rebindable, plus an optional start/stop toggle key. They work while the app is in the background.

Remembers you

A dark control panel: a large Start/Stop button, live click, runtime and rate readouts, and every setting saved to your profile and restored on next launch.

Why this one

  • Stops when you need it to. Corner failsafe on every monitor, an emergency key, click and time limits, a runaway-speed guard, pause when your target window loses focus, and an optional "only while this pixel matches" check. All on by default where it makes sense, and a held button is always released.
  • Builds you can check. Every release is built by GitHub Actions from this repository and ships with a SHA-256 checksum and a build provenance attestation. The source is right here to read.
  • Quiet on your system. One .exe: no installer, no ads, no bundled offers. Hotkeys use Windows RegisterHotKey instead of a system-wide keyboard hook, and the app makes no network requests unless you turn on the daily update check.
  • More than one spot. Record a routine by clicking through it once, click a button wherever it appears on screen, hold and key actions, profiles you can export and share, and a command line with a headless mode for scripts and shortcuts.

Who it's for

  • Easing repetitive strain. If clicking hurts (RSI, tendon problems, limited hand mobility), let the app do the repeated clicks: long holds, key repeat and a start/stop key mean you press once instead of hundreds of times. It does not replace accessibility software or medical advice.
  • Testing and QA. Repeat a click path to reproduce a bug, soak-test a button, or keep a test app busy; the command line exits with a code that says how the run ended.
  • Repetitive data entry and admin work. Click through the same dialog or form step after step, with waits that match how fast the app responds.
  • Idle and incremental games, where the game's rules allow it. Many online games forbid automation; check before you use it.

Quick start

1

Download
WindowsAutoclicker.exe

2

Run it
no installer, no Python

3

Pick a target
Pick, or use the cursor

4

Press F6
F7 or Esc to stop

Note

The executable isn't code-signed, so Windows SmartScreen may say "Windows protected your PC". Choose More info → Run anyway. Every release is built from this repository by CI and ships with a SHA-256 checksum and a build provenance attestation; see how to verify a download.

With Scoop:

scoop bucket add tmhs https://github.com/TMHSDigital/autoclicker
scoop install tmhs/windows-autoclicker
Run from source (Python 3.11 to 3.14)
git clone https://github.com/TMHSDigital/autoclicker.git
cd autoclicker
run_autoclicker.bat

run_autoclicker.bat creates a .venv, installs the pinned dependencies from requirements/runtime-lock.txt and starts the app. To do it by hand:

python -m venv .venv
.venv\Scripts\activate
pip install -r requirements/runtime-lock.txt
python autoclicker.py

Or install it as a command with pipx:

pipx install git+https://github.com/TMHSDigital/autoclicker.git
autoclicker

How timing works

Three settings control the rhythm. With Burst clicks left at 1 (the default), only the interval matters: one click, wait, repeat.

Timing diagram: three clicks separated by the burst pause form a burst; the interval plus or minus variation separates one burst from the next

Setting What it controls Range
Every
Click
Wait between bursts (or between clicks, when a burst is 1 click) 0 to 60 000 ms
or 0.001 to 60 s
± (variation)
Click, after Every
Random offset added to each interval 0 ms to just under
the interval
Burst clicks
Timing, Burst
Clicks fired per burst 1 to 100
Burst pause
Timing, "ms apart"
Wait between the clicks inside a burst 0 to 60 000 ms

Spread (Click panel) does for position what variation does for time: each click lands at a random spot up to that many pixels from the target, for a more natural pattern or to avoid wearing one spot. It applies to fixed points, sequence steps and image targets (staying on the image), not to the cursor or key presses, and clicks never leave the screen. 0, the default, clicks the exact point.

Sequences

Choose Sequence under Target to run several steps in order, for example click Refresh, wait until Save appears, click it, press ctrl+s.

  1. Press Record and click through the routine once, then press Record again (or the Stop key). Each click becomes a step with the button you used, and the time between clicks becomes the wait; two quick clicks on the same spot become a double click. Or press Add... and choose a step:
    • Click point: pick a spot; it uses the button and click type selected in the Click panel.
    • Hold: pick a spot and how long to hold the button down.
    • Key: a key or combination to press in the window in front, such as F5, enter or ctrl+s.
    • Wait for image: drag a rectangle around something, such as a Save button. The sequence waits there until it is on screen, and can then click it.
    • Wait for pixel: pick a spot; the sequence waits until that pixel has the color it has now (within a tolerance you can change).
  2. Select a step and press Edit... (or double-click or right-click it) for what that step has: re-pick its point, its button or single/double click, the hold time or key, or recapture the image. Every step can also set how long to wait before the next step (500 ms by default) or be duplicated. Up, Down and Remove rearrange the list, as do Alt+Up, Alt+Down and Delete on the list. Undo (or Ctrl+Z) brings back the steps from before the last Remove or Record.
  3. Set Repeat to run the whole sequence that many times (0 keeps going until you stop it). The main Every time is the wait between rounds; burst settings don't apply.

A wait step waits until it sees its image or pixel, or until you stop the run. Give it a Timeout in its Edit menu to give up after that many seconds; then the run either stops with a message naming the step (Step 3: the image didn't appear within 10 s), which is the default, or goes on to the next step. While a step waits, the status line says which one.

Every stop path works mid-sequence, including during a wait: hotkeys, the corner failsafe, click and time limits, the runaway guard and pause when unfocused are all checked before each step and while waiting. Holds and key presses count toward a click limit; waits don't. Up to 50 steps; a sequence is saved with your settings and inside profiles. Recording only notes where you click and when, never keystrokes, and uses a mouse hook that exists only while recording.

Image targets

Choose Image under Target to click a button wherever it shows up, even after its window moves.

  1. Press Capture... and drag a rectangle around the button. The app saves that image and searches for it within Search px around the spot (150 by default).
  2. Start as usual. Each click goes to the center of the image where it was last found; while it isn't on screen the run waits and the status line says so.

A small preview of the captured image sits next to Capture..., and Clear forgets it. Matching is exact by default. If the button's colors shift a little (HDR, Night light, a translucent theme), raise Tolerance: each color channel of each pixel may then differ by that much, 0 to 64. Keep it as low as works, since a high tolerance can match something else of the same shape. Recapture if the button really changes look (hover states, a different theme or scaling). Searching a small area keeps it fast without extra dependencies. Each click waits for a fresh search that started after the previous click, so a click that closes the image is never repeated on whatever is underneath; image mode therefore clicks at most about 10 times a second. Every stop path, limit and the runaway guard work as usual.

While the image isn't on screen the run waits for it. To give up instead, set Stop if not seen for to a number of seconds (or pass --image-timeout 30): the run then ends with Stopped: image not seen for 30 s once the image has been missing that long in a row. 0, the default, keeps waiting. Useful for scheduled --headless runs that should end when the button is gone for good.

Command line

Flags override your saved settings for one launch: they fill in the window, and --start presses Start for you (with the usual countdown). Handy for desktop shortcuts, Task Scheduler or a macro pad.

WindowsAutoclicker.exe --profile Work --start --minimized
WindowsAutoclicker.exe --at 800,600 --interval 250ms --button right --clicks 100 --start
autoclicker --cursor --interval 50ms --clicks 200 --headless
Flag Meaning
--at X,Y, --cursor, --sequence, --image Target: a point, wherever the cursor is, the saved sequence, or wherever the captured image appears (the saved capture, or the one in --profile)
--profile NAME Load a saved profile first (other flags apply on top)
--image-timeout SECONDS With --image: stop once the image has not been seen for that long (0 = keep waiting)
--list-profiles Print the saved profiles, one per line with a summary, and exit
--interval 100ms / 2s, --variation MS Timing
--spread PX Land each click up to PX pixels from the target (0 to 50)
--button left|right|middle, --double, --single What to click
--hold MS, --key KEY Hold the button, or press a key, instead of clicking
--burst N:MS, --clicks N, --minutes N, --repeat N Bursts, limits and sequence rounds
--delay SECONDS Countdown before clicking starts
--start-at HH:MM Wait until this time of day (24-hour) before starting
--stop-at HH:MM Stop at this time of day (24-hour), or earlier if another limit is reached
--start, --minimized Press Start after launch; start hidden in the tray
--headless No window: run once, then exit. Hotkeys, the corner failsafe and every limit still apply, and saved settings are left alone
--json With --headless: print the result as one JSON object on stdout (progress goes to stderr)
--version Print the version and exit

With --json the last line on stdout is always one JSON object, also for bad options or a cancelled countdown, with these fields: reason (completed, user_stop, emergency, safety, error, or usage, already_running, cancelled when no run started), message, clicks, seconds and exit_code.

A headless run exits with 0 when it finishes or you press Stop, 2 for bad options, 3 after an emergency stop, 4 for the failsafe or runaway guard, 5 on an error and 6 if the app is already running. --help lists everything; the .exe shows it in a dialog.

Start on a schedule

For a one-off start later today, set Timing, Start at (24-hour, such as 09:30) and press Start: the status line counts down to that time, and Stop, the tray's Stop or the toggle key cancel it. The global Stop and Emergency keys are claimed only for the last minute, so Esc keeps working in other apps while you wait. From the command line, --start-at 09:30 does the same.

To end a run at a time of day, set Timing, Stop at (such as 17:30) or pass --stop-at 17:30. It is the next time the clock shows that time after the run starts, so it works across midnight, and it combines with the click and minute limits in Safety: whichever comes first ends the run.

To start every day, or while you're away, use Windows Task Scheduler:

  1. Open Task Scheduler and choose Create Basic Task. Name it, pick the trigger (Daily, At log on, ...).
  2. Action: Start a program. Program: the full path to WindowsAutoclicker.exe. Arguments, for example: --profile Work --start --minimized, or --profile Work --headless to run without a window and exit when done.
  3. In the task's properties, keep Run only when user is logged on: Windows only accepts mouse and keyboard input on a signed-in, unlocked desktop, so a task that runs at the lock screen or for another user clicks nothing.

Set a click or time limit in the profile (or add --clicks / --minutes) so an unattended run ends on its own.

Hotkeys

KeyActionNotes
F6Start clickingSame as the Start button
F7Stop clickingSame as the Stop button
EscEmergency stopHalts immediately; cancels Pick if picking

Hotkeys are global: they work while another window has focus. Change them, or add a single start/stop toggle key, with the keyboard button in the top-right corner of the window.
The Stop and Emergency keys are only claimed while clicking, so Esc keeps working in other programs the rest of the time.

Safety

An autoclicker that won't stop is worse than none, so every run has more than one way out.

Stop it yourself
  • Corner failsafe (on by default): slam the mouse into a corner of any monitor to abort; checked before every click. Corners where two screens meet don't count, so moving between monitors is safe. Turning it off asks for confirmation.
  • Emergency stop: Esc or the red button, from anywhere.
  • Start countdown: the Start button and tray menu wait 3 seconds before clicking (Timing, Start delay; 0 starts at once), so you can let go of the mouse. Any stop key cancels it. The Start hotkey always starts immediately. While counting down or clicking, the settings are locked (they would not change the running clicks); section headers still open so you can look.
  • Tray icon: Show, Start, Stop and Exit from the notification area. Minimizing hides the window there (the Minimize to tray toggle at the bottom of the window, on by default); double-click the icon to bring it back.
Let it stop itself
  • Limit clicks: stop after N clicks (Safety, Limits).
  • Auto-stop: stop after N minutes (Safety, Limits).
  • Runaway guard: stops if more than 50 button presses land in any one second (a double click is two). Change it under Safety, Speed limit; 0 turns it off after a confirmation.
  • Only when a pixel matches (Safety, Only when): Sample... a point's color, then clicking waits (or stops) whenever that pixel changes, so a run doesn't keep clicking after the window it was meant for closes or moves.
  • Pause when the target window isn't in front (Safety): pauses whenever it isn't, and the status line shows Paused. The target window is the one in front when you press the Start hotkey, or the window under the target point when you press the Start button; the first click brings it to the front. In a sequence, any window a step clicks into counts. In cursor mode it's the next window you bring to the front. A --headless run typed into a terminal treats that terminal like the autoclicker's own window, so it is never taken as the target. Paused time counts toward auto-stop, which still ends a paused run on time. Refuses to start if it can't read the foreground window.

Important

Use it only on software and systems you're allowed to automate, and within their terms of service. Many online games and services forbid automated input. Responsibility for how it's used rests with the user.

Known limitations

  • Windows blocks input from normal apps into elevated (admin) windows. To click into one, run the autoclicker as administrator too; otherwise there's no need to.

Settings and logs

Everything lives in %APPDATA%\WindowsAutoclicker\. Open data folder in the menu (top-right corner of the window) opens it, in portable mode too; or paste the path into Explorer's address bar.

Portable mode: put an empty file named portable.txt next to WindowsAutoclicker.exe and everything is kept in a data folder beside the exe instead, which is handy on a USB stick or a synced folder. Each release also has a ready-made WindowsAutoclicker-portable.zip. Keep the folder somewhere you can write to (not Program Files). Copy diagnostics says portable when it is on.

File Contents
autoclicker_settings.json Your settings and profiles, saved when you start clicking, change profiles, and on exit (a field that is invalid then keeps its last saved value)
autoclicker.log Application log, rotated at 1 MB (keeps 2 backups)
sessions.log One line per run start and stop, with the stop reason and click count; rotated at 1 MB (keeps 3 backups)
All settings keys
Key Default Meaning
target_mode "fixed" "fixed" clicks at X/Y; "cursor" clicks wherever the cursor is; "sequence" clicks the steps in sequence; "image" clicks wherever the captured image appears
image_path, image_region "", [] Image mode: the captured PNG (saved under %APPDATA%\WindowsAutoclicker\images\) and the [left, top, width, height] rectangle where it was captured. Replacing a capture deletes the old file unless a profile uses it
image_margin 150 Pixels around the capture to search, 0 to 2 000; applied when a run starts, so changing it needs no recapture
image_tolerance 0 How far each color channel may differ when matching the image, 0 to 64; 0 = exact
image_missing_stop_seconds 0 Stop if not seen for (--image-timeout): end the run once the image has been missing this many seconds in a row, up to 86 400; 0 = keep waiting
sequence [] Steps for sequence mode: [{"x": 800, "y": 600, "button": "left", "click_type": "single", "delay_ms": 500}, ...]; delay_ms is the wait before the next step
sequence_repeat 0 Rounds to run in sequence mode; 0 = until stopped
x_coord, y_coord 100 Target position in desktop pixels; negative on monitors left of or above the primary
interval 1000 Wait between bursts, in interval_unit
interval_unit "ms" "ms" or "seconds"
variation 0 ± random milliseconds added to each interval
click_spread 0 Each click lands up to this many pixels from the target, 0 to 50; 0 = exact point
mouse_button "left" "left", "right" or "middle"
click_type "single" "single" or "double", for any button. A double click counts as one click toward limits and two presses toward the runaway guard
action "click" "click"; "hold" presses the button for hold_ms, then releases it (always released when a run stops); "key" presses key in whatever window has focus. Sequences always click
hold_ms 500 Hold time in milliseconds, 1 to 60 000
key "" Key or combo for the Key action, e.g. "f5", "space", "ctrl+r"; can't be one of the app's own hotkeys
condition "none" "wait" pauses and "stop" ends the run while the pixel at condition_x, condition_y isn't condition_color (within condition_tolerance per channel); "none" turns it off
condition_x, condition_y, condition_color, condition_tolerance 0, 0, "#000000", 16 The watched pixel, its expected color, and how far each RGB channel may differ (0 to 255)
burst_clicks 1 Clicks per burst
burst_pause 1000 Milliseconds between clicks inside a burst
max_clicks 0 Stop after this many clicks; 0 = no limit
auto_stop_minutes 0 Stop after this many minutes; 0 = off
enable_failsafe true Corner failsafe
pause_when_unfocused false Pause while the starting window isn't in front
start_delay_seconds 3 Countdown before a Start-button or tray start, 0 to 60; 0 = start at once. Hotkey starts are immediate
start_at "" A 24-hour time such as 09:30: Start waits until then instead of the delay; blank = off
max_cps_ceiling 50 Runaway guard (Safety, Speed limit): most button presses allowed in one second, up to 10 000; 0 = off
stop_at "" A 24-hour time such as 17:30: the run ends the next time the clock shows it, or earlier if another limit is reached; blank = off
minimize_to_tray true Minimizing hides the window to the tray icon
check_for_updates null Chosen with the checkbox in the first-launch hint (off unless ticked); true checks GitHub for a newer release at most once a day (the Daily update check toggle at the bottom of the window)
last_update_check 0 When the last successful update check ran (Unix time)
first_run_hint_dismissed false Set when you press Got it on the first-launch hint that lists the ways to stop a run
hotkeys {"start": "F6", "stop": "F7", "emergency": "Esc", "toggle": ""} Key per action, e.g. "Ctrl+Shift+F6"; "" leaves it unbound
presets {} Named profiles: {"Name": {"x": 800, "y": 600, "interval": 100, "mouse_button": "right", ...}}. Besides the point, a profile may hold target_mode, interval, interval_unit, variation, mouse_button, click_type, burst_clicks, burst_pause, max_clicks, auto_stop_minutes, sequence, sequence_repeat, action, hold_ms, key, click_spread, the condition_* settings and, for image profiles, image_path, image_region, image_margin, image_tolerance and image_missing_stop_seconds. Exported files carry an image profile's picture inside the file (image_png), never a path; importing saves it under images\. Older point-only presets still load

Network: the app makes no network requests unless you allow the update check (a checkbox in the first-launch hint, off unless you tick it, changeable with the Daily update check toggle at the bottom of the window). Then, at most once a day, it reads api.github.com/repos/TMHSDigital/autoclicker/releases/latest and shows an Update button if a newer version exists. Nothing is downloaded or installed automatically.

An autoclicker_settings.json left next to the app by older versions is migrated into AppData once, automatically. If the file can't be read (say, after a hand edit with a typo), the app starts with defaults and keeps the broken file as autoclicker_settings.json.corrupt-<time> so you can fix and restore it.

Troubleshooting

Nothing happens when I press Start

A dialog lists any field that failed validation. Check that the coordinates are on one of your screens and that ± variation is smaller than the interval. If no dialog appears, look at the last lines of %APPDATA%\WindowsAutoclicker\autoclicker.log.

It stops after a few clicks

Check the status line and sessions.log for the reason: a click or time limit in Safety, the corner failsafe (did the cursor touch a corner?), the runaway guard (a 0 ms interval with large bursts can pass 50 clicks per second; raise Safety, Speed limit if that speed is intended), or the Pause when the target window isn't in front option if another window came to the front.

My antivirus flags or deletes the download

Some antivirus engines flag programs like this one even when they are clean. Two things trigger it: the exe is a PyInstaller bundle (a Python app packed into one file), and it isn't code-signed yet. Tools that move the mouse also look suspicious to heuristics. To check your copy before you allow it:

  1. Compare its SHA-256 with the .sha256 file on the release page: in PowerShell, Get-FileHash .\WindowsAutoclicker.exe.
  2. Check the build provenance with gh attestation verify .\WindowsAutoclicker.exe --repo TMHSDigital/autoclicker, which proves it was built by this repository's CI from a specific commit (details).
  3. Optionally look the hash up on VirusTotal to see what other engines say.

If it matches, restore it from quarantine and add an exclusion, and please report the false positive to your vendor (for Microsoft Defender: submit a file as "incorrectly detected"). Each report helps the next person. You can also run from source instead.

Image mode never finds the image

Matching is exact, pixel for pixel, so anything that changes how the button is drawn stops it matching:

  • Display scaling or resolution changed, or the window moved to a monitor with a different scale: capture again.
  • Hover, focus or pressed states: capture the button the way it looks when the cursor is not on it, and remember the cursor rests on it after a click.
  • Animations, blinking cursors, HDR, Night light or color filters change pixels: capture a still part of the button, such as its label, or raise Tolerance a little (try 8 to 16).
  • The window moved further than the search margin: raise Search in the Target panel (no recapture needed; it applies at the next Start), or move the window back.

The status line says Paused: waiting for the captured image to appear while it looks. A run whose screen grabs keep failing stops with an error instead of waiting forever.

Clicks don't register in one particular app

If that app runs as administrator, Windows blocks input from non-elevated programs; run the autoclicker as administrator as well. Some games ignore synthetic input entirely, and fast intervals may be faster than an app can react to, so try a longer interval.

The hotkeys don't respond

Another program may already own the key; the status line names any key that could not be registered. Pick a different one with the keyboard button in the top-right corner of the window. Hotkeys also don't reach the app while an elevated (admin) window has focus unless the autoclicker runs as administrator too.

Still stuck? Click Info, then Copy diagnostics, and paste it into a new issue. It shows you exactly what is copied, and leaves out profile names, sequence points, the watched pixel, the captured image and your Windows user folder.

Contributing

Bug reports, fixes and docs improvements are welcome. Start with CONTRIBUTING.md and the open issues.

tasks.bat install   # .venv + pinned deps + dev tools   (make install in Git Bash)
tasks.bat check     # ruff, mypy and pytest             (make check)
Architecture →
Threads, the start/stop paths and why they differ, and where state lives.
Performance →
Hot-path measurements and the soak and profiling scripts.

Releases are cut by pushing a vX.Y.Z tag; CI tests on Python 3.11 to 3.14, builds the executable and publishes it. See the changelog.



CC BY-NC 4.0: free to use, share and adapt for non-commercial purposes with attribution.
For commercial licensing, contact TM Hospitality Strategies.

Built by TMHSDigital · Website · Guides · Sponsor · Security · Provided as is, without warranty.

About

Free Windows auto clicker: record click routines, click wherever an image appears, sequences and hold/key actions, with safety stops on by default. Single .exe.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages