Skip to main content

Module app

Module app 

Source

Constants§

MOUSE
Dispatch mouse input to a host app window. Accepts {window_id?, action} where action is a tagged object such as {kind:"click", x, y, button?}.
SCREENSHOT
Capture a PNG of the host app’s window. Accepts an optional window_id (returned by WINDOWS) so multi-window desktop apps can pick a specific surface; mobile platforms ignore it since they have a single foreground window. Returns a JSON envelope {format, size_bytes, data_base64}.
WINDOWS
Enumerate the host app’s top-level windows. Returns a JSON array of {id, title, focused, main, visible, width, height}.