examples

command
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

RobotGo examples

These examples use this fork's module path:

go get github.com/marang/robotgo

Run an example from the repository root, for example:

go run ./examples/runtime_capabilities
go run ./examples/runtime_diagnostics
go run ./examples/screen_full

Available examples:

  • runtime_capabilities: cross-platform build, backend, feature, permission, and unsupported diagnostics.
  • runtime_diagnostics: versioned JSON with selected backends, protocol versions, permission state, and remediation.
  • linux_capabilities: detailed Linux display server, compositor, portal, and fallback diagnostics.
  • screen: capture, pixel, bitmap, and display operations.
  • screen_full: full-screen capture with selected backend reporting.
  • screencast_capture: persistent ScreenCast/PipeWire capture on supported Wayland builds.
  • remote_desktop_input: explicit, consent-aware RemoteDesktop portal input.
  • mouse: pointer movement, clicks, and scrolling.
  • key: keyboard and clipboard operations.
  • window: window and process helpers.
  • scale: display scaling information.

Examples perform real desktop actions. Inspect them before running, especially the input and window/process examples. Portal examples may show a consent dialog only when explicitly asked to connect or demonstrate an operation.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Command agent_actions demonstrates the extended, policy-gated RobotGo agent actions.
Command agent_actions demonstrates the extended, policy-gated RobotGo agent actions.
Command agent_image_analysis demonstrates explicit, observation-bound local OCR or visual element proposals for a self-owned desktop region.
Command agent_image_analysis demonstrates explicit, observation-bound local OCR or visual element proposals for a self-owned desktop region.
Command purego_macos_input demonstrates permission-aware Pure-Go keyboard automation on macOS without injecting input unless -act is supplied.
Command purego_macos_input demonstrates permission-aware Pure-Go keyboard automation on macOS without injecting input unless -act is supplied.
Command purego_macos_pointer demonstrates permission-aware Pure-Go pointer automation on macOS.
Command purego_macos_pointer demonstrates permission-aware Pure-Go pointer automation on macOS.
Command purego_windows_input demonstrates the non-CGO Windows input backend.
Command purego_windows_input demonstrates the non-CGO Windows input backend.
Command runtime_diagnostics prints RobotGo's versioned, sanitized runtime support report without requesting desktop consent.
Command runtime_diagnostics prints RobotGo's versioned, sanitized runtime support report without requesting desktop consent.
Command screencast_capture demonstrates reusable Wayland ScreenCast capture.
Command screencast_capture demonstrates reusable Wayland ScreenCast capture.
Command semantic_element_action inspects one self-owned accessible window, resolves and toggles one uniquely named checkbox or switch, verifies the opposite checked state, records the semantic workflow, and returns both the privacy-tiered Trace and deterministic Go/MCP flow artifacts.
Command semantic_element_action inspects one self-owned accessible window, resolves and toggles one uniquely named checkbox or switch, verifies the opposite checked state, records the semantic workflow, and returns both the privacy-tiered Trace and deterministic Go/MCP flow artifacts.
Command semantic_ui prints one bounded native accessibility snapshot for an explicitly selected process/window and exact title.
Command semantic_ui prints one bounded native accessibility snapshot for an explicitly selected process/window and exact title.
Command target_evidence_review demonstrates a non-executable TargetSpec v2 review using one explicitly selected visual proposal from a self-owned GUI.
Command target_evidence_review demonstrates a non-executable TargetSpec v2 review using one explicitly selected visual proposal from a self-owned GUI.
Program verified_flow_planner demonstrates advisory capability planning for one semantic resolve-act-verify transaction.
Program verified_flow_planner demonstrates advisory capability planning for one semantic resolve-act-verify transaction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL