KeyRoutines
StepFreeinput.mouse

Automate mouse clicks, scrolling and drags on Windows 11

Mouse clicks, scrolls, drags or moves the pointer in the app in front. Points are picked relative to a window or a monitor rather than fixed screen pixels, so a routine keeps working when windows move or your monitors change.

How it works

  • Choose the action: click, double-click, press or release a button, move, scroll or drag, with the left, right, middle or side buttons.
  • Pick the point with the crosshair as a position inside a window or on a monitor; leave it empty to act where the pointer already is.
  • Scroll is set in wheel notches: positive scrolls up, negative scrolls down.
  • Unless you turn it off, the pointer returns to where it was afterwards.
  • If another window covers the point, nothing is clicked and the step says why.

Routines that use it

Click a toolbar button

Focus window brings your editor forward, then Mouse clicks its Export button at the same spot every time.

Scroll a dashboard

Every … 5 minutes, Mouse scrolls a monitoring page up three notches so the newest rows stay visible.

Drag a slider

In a desktop audio app, drag a slider from one point to another inside the same window as part of a recording setup.

Settings

SettingWhat it does
ActionWhat to do with the mouse.
ButtonWhich button.
AtWhere. Leave empty to act where the mouse is now.
Drag toWhere the drag ends, in the same window or monitor.
ScrollHow far to scroll, in wheel notches: positive scrolls up, negative down.
Restore cursoradvancedPut the mouse pointer back where it was afterwards.

Good to know

  • Refused while a game protected by anti-cheat is in front or under the point; KeyRoutines is for setting up around games, not playing them.
  • Apps running as administrator can't receive clicks from KeyRoutines.

Questions

Will my routine still click the right spot if I move the window?
Yes. Points are stored as positions inside the window or monitor and worked out when the step runs, so moving or resizing the window doesn't break it.
Can it click inside games?
No. Input is blocked while a protected game is in front, and KeyRoutines isn't meant to play games for you. Use it for desktop apps.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.