Documentation
¶
Index ¶
- Constants
- func CheckTopWindow[T int | string](titleOrPid T) bool
- func Clear()
- func Find(pid int, title string) <-chan int
- func FindPid(pid int) <-chan int
- func FindTitle(title string) <-chan int
- func Get() string
- func LostPid(pid int) <-chan struct{}
- func LostTitle(title string) <-chan struct{}
- func Set(text string)
- func SetTopWindow[T int | string](titleOrPid T) bool
- func SetTopWindowClick[T int | string](titleOrPid T) bool
- type ATOM
- type DWORD
- type HWND
- type POINT
- type PROCESSENTRY32
- type Process
- type Procs
- type RECT
- type UINT
- type WINDOWINFO
- type WORD
- type WinWin
Constants ¶
View Source
const ( ERROR_NO_MORE_FILES = 0x12 MAX_PATH = 260 )
Variables ¶
This section is empty.
Functions ¶
func CheckTopWindow ¶
CheckTopWindow top(focus) window
func SetTopWindow ¶
SetTopWindow top(focus) window
func SetTopWindowClick ¶
SetTopWindowClick top(focus) window
Types ¶
type PROCESSENTRY32 ¶
type PROCESSENTRY32 struct { ExeFile [MAX_PATH]uint16 PriorityClassBase int32 Size uint32 CntUsage uint32 ProcessID uint32 ModuleID uint32 CntThreads uint32 ParentProcessID uint32 Flags uint32 DefaultHeapID uintptr }
PROCESSENTRY32 - process of exec (win handler)
type Procs ¶
type Procs interface { *syscall.Proc | *syscall.LazyProc Call(...uintptr) (uintptr, uintptr, error) }
Procs - processes interface
type RECT ¶
type RECT struct {
Left, Top, Right, Bottom int32
}
RECT - process of exec (win handler)
type WINDOWINFO ¶
type WINDOWINFO struct { CbSize DWORD RcWindow RECT RcClient RECT DwStyle DWORD DwExStyle DWORD DwWindowStatus DWORD CxWindowBorders UINT CyWindowBorders UINT AtomWindowType ATOM WCreatorVersion WORD }
WINDOWINFO - process of exec (win handler)
type WinWin ¶
WinWin - Window in WindowsOS
func FindWindow ¶
FindWindow check windows by pid/title
func (*WinWin) CheckTopWindow ¶
CheckTopWindow check top(focus) window
func (*WinWin) FindWindow ¶
FindWindow window by the pid or the part title
func (*WinWin) SetTopClickCenterWindow ¶
SetTopClickCenterWindow top(focus) window with click
Click to show internal directories.
Click to hide internal directories.