windowfocus

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package windowfocus activates windows created by launched Windows processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager waits for a launched process to create a top-level window and then asks Windows to activate it.

func (*Manager) Focus

func (m *Manager) Focus(ctx context.Context, pid uint32) error

Focus polls until the process owns a window that Windows accepts as foreground.

Jump to

Keyboard shortcuts

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