examples

command
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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 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.

Jump to

Keyboard shortcuts

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