interfaces

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package interfaces defines core interfaces for dependency injection and testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlReader

type ControlReader interface {
	GetListBoxItems(hwnd uintptr) []string
	GetEditText(hwnd uintptr) string
	FindAndClickButton(parentHwnd uintptr, buttonText string) bool
}

ControlReader reads window controls

type KeyboardInjector

type KeyboardInjector interface {
	SendF12()
	SendAltF12()
	SendEnter()
	SendF12ToWindow(hwnd uintptr) bool
	SendAltF12ToWindow(hwnd uintptr) bool
	SendF12WithSendInput() bool
	SendAltF12WithSendInput() bool
}

KeyboardInjector handles keyboard input

type ProcessManager

type ProcessManager interface {
	FindWindow(targetPid uint32, debug bool) (uintptr, string)
	WaitForReady(hwnd uintptr, timeout time.Duration) bool
}

ProcessManager handles SIMPL process operations

type WindowManager

type WindowManager interface {
	CloseWindow(hwnd uintptr, title string)
	SetForeground(hwnd uintptr) bool
	VerifyForegroundWindow(expectedHwnd uintptr, expectedPid uint32) bool
	IsElevated() bool
	CollectChildInfos(hwnd uintptr) []windows.ChildInfo
	WaitOnMonitor(timeout time.Duration, matchers ...func(windows.WindowEvent) bool) (windows.WindowEvent, bool)
}

WindowManager handles window operations

Jump to

Keyboard shortcuts

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