type_text
Input Unicode text into a window programmatically, with the ability to send keystrokes without activating the target window.
Instructions
Type text into a window via SendInput Unicode. noActivate uses PostMessage WM_CHAR so the target window doesn't need focus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | Window handle from list_windows or launch_app. | |
| pid | No | ||
| processName | No | ||
| titleContains | No | ||
| text | Yes | Text to type into the target window. Sent via SendInput Unicode, so any Unicode character including CJK is supported. | |
| delayMs | No | Delay between keystrokes in milliseconds. | |
| pressMs | No | Duration of each key press in milliseconds. | |
| noActivate | No | When true, sends WM_CHAR messages via PostMessage instead of SendInput, so the target window never needs focus. Some applications may not respond to posted messages. |