Documentation ¶
Index ¶
- Constants
- func ActivateKeyboardLayout(hkl w32.HKL, flags uint32) w32.HKL
- func GetClipboardData(f uint) w32.HANDLE
- func GetClipboardSequenceNumber() uint32
- func GetForegroundWindow() w32.HWND
- func GetKeyboardLayout(id uint32) w32.HKL
- func GetKeyboardLayoutList() []w32.HKL
- func GetKeyboardLayoutName() string
- func GlobalSize(h w32.HGLOBAL) uint64
- func LoadKeyboardLayout(id string, flags uint32) w32.HKL
- func RegisterHotKey(h w32.HWND, id, mod, vk int) bool
- func RegisterWindowMessage(msg string) uint32
- func SetConsoleCtrlHandler(h HandlerRoutine, add bool) bool
- func SetConsoleTitle(title string) bool
- func SetForegroundWindow(h w32.HWND) bool
- func ShowWindow(h w32.HWND, st uint32) bool
- func StringToUtf16z(s string) (out []byte)
- func UnloadKeyboardLayout(hkl w32.HKL) bool
- func Utf16zToString(in []byte) string
- type HandlerRoutine
- type PlacementInfo
Constants ¶
View Source
const ( MOD_ALT = 0x0001 MOD_CONTROL = 0x0002 MOD_SHIFT = 0x0004 MOD_WIN = 0x0008 MOD_NOREPEAT = 0x4000 KEYEVENTF_EXTENDEDKEY = 0x0001 KEYEVENTF_KEYUP = 0x0002 KEYEVENTF_UNICODE = 0x0004 KEYEVENTF_SCANCODE = 0x0008 KL_NAMELENGTH = 9 CTRL_C_EVENT = 0 CTRL_BREAK_EVENT = 1 CTRL_CLOSE_EVENT = 2 CTRL_LOGOFF_EVENT = 5 CTRL_SHUTDOWN_EVENT = 6 )
Variables ¶
This section is empty.
Functions ¶
func GetClipboardData ¶
func GetClipboardSequenceNumber ¶
func GetClipboardSequenceNumber() uint32
func GetForegroundWindow ¶
func GetKeyboardLayout ¶
func GetKeyboardLayoutList ¶
func GetKeyboardLayoutName ¶
func GetKeyboardLayoutName() string
func GlobalSize ¶
func RegisterWindowMessage ¶
func SetConsoleCtrlHandler ¶
func SetConsoleCtrlHandler(h HandlerRoutine, add bool) bool
func SetConsoleTitle ¶
func SetForegroundWindow ¶
func StringToUtf16z ¶
func UnloadKeyboardLayout ¶
func Utf16zToString ¶
Types ¶
type HandlerRoutine ¶
type PlacementInfo ¶
type PlacementInfo struct { Length uint32 Flags uint32 ShowCmd uint32 PtMinPosition tagPoint PtMaxPosition tagPoint RcNormalPosition tagRect }
func GetWindowPlacement ¶
func GetWindowPlacement(h w32.HWND) *PlacementInfo
Click to show internal directories.
Click to hide internal directories.