runtime.HostAccessibility · builtin ·
HostAccessibility.PublishNode
Publish node through the HostAccessibility runtime.
Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.
HostAccessibility.PublishNode(int window, int native_identity, int parent_native_identity, int generation, int control_type, text automation_identity, text name, text description, text value, int pattern_flags, int x, int y, int width, int height, bool focused, bool focusable, bool enabled) -> boolStatus: registered-intrinsic
Parameters
int window- Supply window as int.
int native_identity- Supply native identity as int.
int parent_native_identity- Supply parent native identity as int.
int generation- Supply generation as int.
int control_type- Supply control type as int.
text automation_identity- Supply automation identity as text.
text name- Supply name as text.
text description- Supply description as text.
text value- Supply value as text.
int pattern_flags- Supply pattern flags as int.
int x- Supply x as int.
int y- Supply y as int.
int width- Supply width as int.
int height- Supply height as int.
bool focused- Supply focused as bool.
bool focusable- Supply focusable as bool.
bool enabled- Supply enabled as bool.
Call HostAccessibility.PublishNode
A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.
cpu · builtin · type checked
int window = 1
int native_identity = 1
int parent_native_identity = 1
int generation = 1
int control_type = 1
text automation_identity = "automation identity"
text name = "Nova"
text description = "description"
text value = "value"
int pattern_flags = 1
int x = 1
int y = 1
int width = 1
int height = 1
bool focused = true
bool focusable = true
bool enabled = true
bool result = HostAccessibility.PublishNode(window, native_identity, parent_native_identity, generation, control_type, automation_identity, name, description, value, pattern_flags, x, y, width, height, focused, focusable, enabled)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.runtime__hostaccessibility_publishnode"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources.
yeho/src/compiler/common/intrinsic_registry.cpp:1135