window_post
Send typed text, key presses, hotkeys, clicks, or scrolls to a background window without stealing focus. Use auto mode for modern apps to route input correctly.
Instructions
Send input to a window in the background. action: type | key | hotkey | click | scroll. mode: auto (recommended — routes WinUI/UWP apps through the focused SendInput path automatically) | background | focused. Note: 'uia' routing focuses the window (unavoidable for modern apps).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| key | No | ||
| hwnd | Yes | ||
| keys | No | ||
| mode | No | auto | |
| text | No | ||
| action | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |