os

package
v0.0.0-...-f56b5c8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumWindows

func EnumWindows(callbackFn TypeEnumWindowsProc)

EnumWindows 一进多出, 最好是输入全局变量往里面push, 而不是return

func EnumWindowsProc

func EnumWindowsProc(hwnd win32.HWND, lparam win32.LPARAM) uintptr

EnumWindowsProc 在这里处理每个窗口

func GetCurrentPath

func GetCurrentPath() string

func SetWindowOpacity

func SetWindowOpacity(hwnd win32.HWND, opacity byte) bool

SetWindowOpacity Allow range is [50,255], in order to avoid completely invisible

Types

type EnumWindowsFilter

type EnumWindowsFilter struct {
	IgnoreNoTitled  bool
	IgnoreInvisible bool
}

type EnumWindowsResult

type EnumWindowsResult struct {
	Handle  win32.HWND
	Title   string
	Opacity byte
}

func FindWindows

func FindWindows(regex string) (res []*EnumWindowsResult)

func GetEnumWindowsInfo

func GetEnumWindowsInfo(filter *EnumWindowsFilter) []*EnumWindowsResult

type TypeEnumWindowsProc

type TypeEnumWindowsProc func(hwnd win32.HWND, lparam win32.LPARAM) uintptr

Jump to

Keyboard shortcuts

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