Documentation ¶
Index ¶
- Constants
- Variables
- func CloseClipboard() error
- func EmptyClipboard() error
- func GetClipboardDataText() (string, error)
- func GetConsoleWindows() (hwnd uintptr)
- func GlobalAlloc(flags uint, size uint) (handle windows.Handle, err error)
- func GlobalLock(hMem windows.Handle) (pointer uintptr, err error)
- func GlobalUnlock(hMem windows.Handle) (err error)
- func MessageBoxW(hwnd uintptr, caption, title string, flags uint) int
- func OpenClipboard(hwnd windows.HWND) error
- func RunningByDoubleClick() bool
- func SetClipboardText(text string) (handle windows.Handle, err error)
- func SetText(text string) error
- func ToHighDPI()
Constants ¶
View Source
const CF_LOCALE uintptr = 16
View Source
const CF_TEXT uintptr = 1
View Source
const CF_UNICODETEXT uintptr = 13
View Source
const GMEM_MOVEABLE uintptr = 0x0002
Variables ¶
View Source
var Kernel32 = windows.NewLazySystemDLL("kernel32.dll")
View Source
var User32 = windows.NewLazySystemDLL("user32.dll")
Functions ¶
func CloseClipboard ¶
func CloseClipboard() error
func EmptyClipboard ¶
func EmptyClipboard() error
func GetClipboardDataText ¶
func GetConsoleWindows ¶
func GetConsoleWindows() (hwnd uintptr)
GetConsoleWindows retrieves the window handle used by the console associated with the calling process.
func GlobalUnlock ¶
func MessageBoxW ¶
MessageBoxW of Win32 API. Check https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxw for more detail.
func OpenClipboard ¶
func RunningByDoubleClick ¶
func RunningByDoubleClick() bool
RunningByDoubleClick Check if run directly by double-clicking
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.