Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func CreateWindowEx(dwExStyle uint32, lpClassName uintptr, lpWindowName string, dwStyle uint32, ...) (hWnd uintptr, err error)
- func DefWindowProc(hWnd uintptr, uMsg uint32, wParam, lParam uintptr) (lResult uintptr)
- func DispatchMessage(lpMsg *MSG) (lResult uintptr)
- func MapVirtualKey(uCode, uMapType uint32) (uResult uint32)
- func PostMessage(hWnd uintptr, Msg uint32, wParam, lParam uintptr) (bResult bool, err error)
- func RegisterClassEx(style uint32, lpfnWndProc WindowProc, cbClsExtra, cbWndExtra int32, ...) (hClass uint16, err error)
- func RegisterHotKey(hWnd uintptr, id int32, fsModifiers, vk uint32) (bResult bool, err error)
- func SendInput(pInputs []INPUT_KEYBDINPUT) (nResult uint32, err error)
- func TranslateMessage(lpMsg *MSG) (bResult bool)
- type INPUT_KEYBDINPUT
- type KEYBDINPUT
- type MSG
- type WNDCLASSEX
- type WindowProc
Constants ¶
View Source
const ( HWND_MESSAGE uintptr = ^uintptr(2) INPUT_MOUSE uint32 = 0 INPUT_KEYBOARD uint32 = 1 INPUT_HARDWARE uint32 = 2 MAPVK_VK_TO_VSC uint32 = 0 MAPVK_VSC_TO_VK uint32 = 1 MAPVK_VK_TO_CHAR uint32 = 2 MAPVK_VSC_TO_VK_EX uint32 = 3 KEYEVENTF_EXTENDEDKEY uint32 = 0x1 KEYEVENTF_KEYUP uint32 = 0x2 KEYEVENTF_UNICODE uint32 = 0x4 KEYEVENTF_SCANCODE uint32 = 0x8 VK_SHIFT uint16 = 0x10 VK_CONTROL uint16 = 0x11 VK_MENU uint16 = 0x12 MOD_ALT uint16 = 0x0001 MOD_CONTROL uint16 = 0x0002 MOD_NOREPEAT uint16 = 0x4000 MOD_SHIFT uint16 = 0x0004 WM_QUIT uint32 = 0x0012 WM_HOTKEY uint32 = 0x0312 )
Variables ¶
This section is empty.
Functions ¶
func CreateWindowEx ¶
func DefWindowProc ¶
func DispatchMessage ¶
func MapVirtualKey ¶
func PostMessage ¶
func RegisterClassEx ¶
func RegisterHotKey ¶
func SendInput ¶
func SendInput(pInputs []INPUT_KEYBDINPUT) (nResult uint32, err error)
func TranslateMessage ¶
Types ¶
type INPUT_KEYBDINPUT ¶
type INPUT_KEYBDINPUT struct { Type uint32 Ki KEYBDINPUT Padding [2]uint32 }
type KEYBDINPUT ¶
type MSG ¶
type WNDCLASSEX ¶
Click to show internal directories.
Click to hide internal directories.