click_menu_item
Invoke a native Windows menu item by menu path without moving the physical cursor or using keyboard shortcuts. Works in the background without stealing focus.
Instructions
Invoke a native Windows menu item by menu path without moving the physical cursor or using keyboard shortcuts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | No | Window handle from list_windows or launch_app. Numbers are accepted at runtime, but strings are safest for Codex. | |
| pid | No | ||
| processName | No | ||
| titleContains | No | ||
| path | Yes | Native menu path, for example ["帮助", "关于"]. Matching ignores accelerator markers and is case-insensitive. | |
| delayMs | No | Delay after invoking the menu command. |