At a glance
- Applies to
- Windows 10 and 11
- Time needed
- 5 to 10 minutes
- Difficulty
- Beginner
- Cost
- Free
- Admin needed
- Only if the target app is elevated
- Last verified
- November 2026
Why a Macro Clicks the Wrong Place
A macro clicks the wrong place when the target moved or the numbers meaning “where” changed. The usual causes are a moved window, a new display scale, a second monitor, or a click that fires before the screen finished loading.
A recorded click is stored as a position, or as a control the recorder recognized. Positions assume that the window, the monitor and the scale are the same as during recording. Change any one of them and the same numbers point at something else.
Work through the causes in the order below. Each takes under two minutes to rule out, and the order goes from most to least common.
Display Scale and Window Position
Windows display scaling, such as 125 or 150 percent, changes how many physical pixels a click position covers. A macro recorded at one scale and run at another lands off target even when the window has not moved.
Check Settings, System, Display, and note the scale on the machine where you recorded. Use the same scale where the macro runs, or re-record there. AutoHotkey also reads click positions relative to the active window by default for Click, so setting CoordMode to Window keeps them tied to the window corner rather than the screen.
#Requires AutoHotkey v2.0
CoordMode "Mouse", "Window"
^!1:: {
WinActivate "Invoice"
WinWaitActive "Invoice", , 3
Click 220, 140
}The WinWaitActive line matters. It stops the click from firing before the right window has focus.
Administrator Apps and Blocked Input
If the macro does nothing at all in one app, that app probably runs as administrator while your macro tool does not. Windows blocks input from a lower-rights process into a higher-rights one, so the clicks never arrive.
Run the macro tool at the same level as the app, or start the app without administrator rights if it allows that. Do not raise rights on a work PC without checking policy first. The page on macros at work and IT policy covers what to ask.
Timing Gaps That Look Like Position Errors
A click that fires while a window is still opening lands on whatever is on screen at that instant. Add a wait or a window check before each click that follows a load, and the “wrong place” often disappears.
A Five-Minute Diagnostic Order
Test one cause at a time, in this order: window state, display scale, monitor, rights level, timing. Change one thing, run the macro, and stop as soon as it works so you know what fixed it.
Checklist
0 of 5 completed
The AutoHotkey documentation warns that some games do not accept sent keys and clicks. Check a game’s rules before automating it.
Wrong-Place Click Questions
Why does my macro click correctly on one screen but not another?
Different monitors can have different scale and resolution, so the same position points at a different spot. Record and run on the same monitor, or measure positions from the window corner.
Does moving the window break a recorded macro?
A control-based recording usually survives a small move. A raw position recording does not. Re-record or switch to window-relative positions.
Why does nothing happen in one program only?
That program probably runs as administrator. Run the macro tool at the same rights level, subject to your IT policy.
Will a longer wait always help?
Not always. A fixed wait hides a timing gap but breaks when the PC is slow. Waiting for a window to become active is more reliable.