app_open_panel
Open a named dockable panel in EasyEDA Pro and confirm it appears, ensuring it is not accidentally toggled off if already visible.
Instructions
Open a dockable panel by name, and confirm it appeared.
Goes through View > Panels, because Altium exposes no scripted
way to show a panel and application.execute_menu reports
success while invoking nothing. So this STEALS FOCUS, like every
menu click. Reading a panel afterwards does not.
A panel that is already open is reported as such and NOT clicked.
Those menu entries are toggles, so clicking one you already have
would close it, and asking for a panel is not a request to lose
it. When the panel cannot be seen after the click (it may have
been open with no tab the scan reads), the entry is clicked once
more so the panel is left as it was, and the reply says so with
toggled_back. Calling again does not help in that case.
Args: name: the panel's name as View > Panels spells it, e.g. "Projects", "Messages", "PCB", "Properties". settle: how long to allow for it to appear.
Returns:
{"ok": true, "name": ..., "opened": bool, "rect": ...}.
opened is false when it was already there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| settle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||