ahk_control_send
Send text or keystrokes to a background window without focusing it. Uses AutoHotkey's ControlSend for reliable input to non-active windows.
Instructions
Send text or keystrokes to a background window/control via AutoHotkey ControlSend.
Works without focusing the window and is often more reliable than raw WM_CHAR for complex apps. Target a HWND with 'ahk_id '.
Args: params (AhkControlSendInput): text, window/control targets, as_keys, timeout.
Returns: str: JSON with the AHK run result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |