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
Click to show internal directories.
Click to hide internal directories.