windows

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	MOD_CONTROL = 0x0002
	MOD_SHIFT   = 0x0004
	WM_HOTKEY   = 0x0312
	VK_K        = 0x4B
)
View Source
const (
	INPUT_KEYBOARD  = 1
	KEYEVENTF_KEYUP = 0x0002

	VK_CONTROL = 0x11
	VK_SHIFT   = 0x10
	VK_C       = 0x43
	VK_V       = 0x56
)
View Source
const CF_UNICODETEXT = 13
View Source
const GMEM_MOVEABLE = 0x0002

Variables

This section is empty.

Functions

func AutostartInstalled

func AutostartInstalled() bool

func CtrlC

func CtrlC()

func CtrlV

func CtrlV()

func InstallAutostart

func InstallAutostart(path string) error

func LayoutsPath

func LayoutsPath() (string, error)

func ProcessWithConfig

func ProcessWithConfig(cfg Config)

func ReadClipboard

func ReadClipboard() (string, error)

func SaveConfig

func SaveConfig(cfg Config) error

func StartHotkeyListener

func StartHotkeyListener(handler func()) error

func UninstallAutostart

func UninstallAutostart() error

func WriteClipboard

func WriteClipboard(text string) error

Types

type Config

type Config struct {
	From   string `json:"from"`
	To     string `json:"to"`
	Hotkey string `json:"hotkey"`
}

func LoadConfig

func LoadConfig() (Config, error)

type KEYBDINPUT

type KEYBDINPUT struct {
	WVk         uint16
	WScan       uint16
	DwFlags     uint32
	Time        uint32
	DwExtraInfo uintptr
}

type MSG

type MSG struct {
	Hwnd    uintptr
	Message uint32
	WParam  uintptr
	LParam  uintptr
	Time    uint32
	Pt      struct {
		X, Y int32
	}
}

Jump to

Keyboard shortcuts

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