app_context_menu
Opens, reads, or selects an EasyEDA Pro right-click menu item at screen coordinates so automation can access component, net, polygon, and panel actions.
Instructions
Right click at a point: read the context menu, or pick from it.
CONTEXT MENUS WERE ENTIRELY UNREACHABLE, and Altium puts a great deal in them that no top-level menu duplicates: what you can do to a component, a net, a polygon, a row in a panel. Driving the menu bar while ignoring these leaves most of the editor shut.
With no item this OPENS the menu, reads what it offers and
CLOSES it again, invoking nothing. Leaving a popup dropped
blocks the next operation and looks to a user like a hang.
Args: x, y: screen coordinates to right click. Panel and control rectangles from app_list_panels and app_set_dialog_control(list_only=true) give you these. item: the entry to choose. Nested entries take a '|' path, matched by name at each level like the menu bar.
Returns:
Reading: {"ok": true, "items": [...], "count": N}.
Choosing: {"ok": true, "item": ...}, or ok: false
with offered listing what was actually there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| item | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||