aos mouse
Pointer position and clicks
3 commands. Run aos mouse --help for the same list from the binary, or see every group.
Pointer position and clicks. click --app=X --find=Label presses a control through the accessibility API, with no pointer movement and no focus change. Coordinates are global screen pixels; --monitor makes them relative to one monitor.
Commands
Section titled “Commands”aos mouse click
Section titled “aos mouse click”Click, optionally moving to a point first
needs a display
aos mouse click [<x> <y>] [--button=left|right|middle] [--double] [--monitor=<n>] | --app=<name>|--title=<s> --find=<text> [--role=<r>] [--focus] [--json]| flag | values | meaning |
|---|---|---|
<x> |
Optional positional argument | |
<y> |
Optional positional argument | |
--button |
left, right, middle |
Optional |
--double |
Optional | |
--monitor |
<n> |
Optional |
--app |
<name> |
One of these is required |
--title |
<s> |
One of these is required |
--find |
<text> |
Required |
--role |
<r> |
Optional |
--focus |
Optional | |
--json |
Optional |
aos mouse clickaos mouse click --app=Calculator --find=7 --role=button # AXPress / UIA Invoke: no pointer, no focusaos mouse click 400 300 --doubleaos mouse click --button=rightaos mouse move
Section titled “aos mouse move”Move the pointer
needs a display
aos mouse move <x> <y> [--monitor=<n>]| flag | values | meaning |
|---|---|---|
<x> |
Required positional argument | |
<y> |
Required positional argument | |
--monitor |
<n> |
Optional |
aos mouse move 400 300aos mouse move 400 300 --monitor=2aos mouse position
Section titled “aos mouse position”Print the pointer position as x y
needs a display
aos mouse positionaos mouse position # 784 539