screen_map
Retrieve desktop, window, pointer, and widget coordinates with precise click points. Map screen elements to exact pixels so actions like 'click Save' become numbers.
Instructions
Everything on screen with the coordinates to reach it: the desktop rectangle, every window top of the stack first with its centre point, where the pointer is, and every pressable widget of the focused application with the exact pixel to click it at. This is the one call that turns 'click the Save button' into a number without looking at an image. Every widget also carries a ref: N -- pass it straight to ui_press(ref) or pointer_click(ref); refs are valid until the next screen_map call, and the result's refs_generation says which call issued them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | AT-SPI application name, if not the focused window's. | |
| limit | No | ||
| widgets | No |