Versions in this module Expand all Collapse all v1 v1.6.1 Nov 12, 2023 v1.6.0 Nov 12, 2023 Changes in this version + func ShowMessage(caption, message string) — windows/amd64 v1.5.0 Nov 12, 2023 Changes in this version + func SetOnClipboardChange(f func()) — windows/amd64 v1.4.0 Nov 11, 2023 Changes in this version + const LeftMouseDown — windows/amd64 + const LeftMouseUp — windows/amd64 + const MiddleMouseDown — windows/amd64 + const MiddleMouseUp — windows/amd64 + const MouseMove — windows/amd64 + const MouseWheel — windows/amd64 + const MouseWheelHorizontal — windows/amd64 + const RightMouseDown — windows/amd64 + const RightMouseUp — windows/amd64 + func SetOnKeyboardEvent(f func(*KeyboardEvent)) — windows/amd64 + func SetOnMouseEvent(f func(*MouseEvent)) — windows/amd64 + type KeyboardEvent struct — windows/amd64 + Down bool + Injected bool + Key uint16 + func (e *KeyboardEvent) Cancel() + type MouseEvent struct — windows/amd64 + Injected bool + Type MouseEventType + Wheel float64 + X int + Y int + func (e *MouseEvent) Cancel() + type MouseEventType int — windows/amd64 v1.3.0 Oct 13, 2022 Changes in this version + func MoveMouseWheelBy(dx, dy float64) error — windows/amd64 v1.2.1 Oct 12, 2022 v1.2.0 Oct 12, 2022 Changes in this version type Window — windows/amd64 + func (w *Window) InnerPosition() (x, y, width, height int, err error) + func (w *Window) OuterPosition() (x, y, width, height int, err error) + func (w *Window) SetInnerPosition(x, y, width, height int) error + func (w *Window) SetOuterPosition(x, y, width, height int) error v1.1.0 Oct 11, 2022 Changes in this version + func MousePosition() (x, y int, err error) — windows/amd64 v1.0.0 Oct 10, 2022 Changes in this version + const Key0 — windows/amd64 + const Key1 — windows/amd64 + const Key2 — windows/amd64 + const Key3 — windows/amd64 + const Key4 — windows/amd64 + const Key5 — windows/amd64 + const Key6 — windows/amd64 + const Key7 — windows/amd64 + const Key8 — windows/amd64 + const Key9 — windows/amd64 + const KeyA — windows/amd64 + const KeyAlt — windows/amd64 + const KeyApps — windows/amd64 + const KeyAttn — windows/amd64 + const KeyB — windows/amd64 + const KeyBackspace — windows/amd64 + const KeyBrowserBack — windows/amd64 + const KeyBrowserFavorites — windows/amd64 + const KeyBrowserForward — windows/amd64 + const KeyBrowserHome — windows/amd64 + const KeyBrowserRefresh — windows/amd64 + const KeyBrowserSearch — windows/amd64 + const KeyBrowserStop — windows/amd64 + const KeyC — windows/amd64 + const KeyCancel — windows/amd64 + const KeyCapsLock — windows/amd64 + const KeyClear — windows/amd64 + const KeyControl — windows/amd64 + const KeyCrSel — windows/amd64 + const KeyD — windows/amd64 + const KeyDecimal — windows/amd64 + const KeyDelete — windows/amd64 + const KeyDivide — windows/amd64 + const KeyDown — windows/amd64 + const KeyE — windows/amd64 + const KeyEnd — windows/amd64 + const KeyEnter — windows/amd64 + const KeyErEof — windows/amd64 + const KeyEscape — windows/amd64 + const KeyExSel — windows/amd64 + const KeyExecute — windows/amd64 + const KeyF — windows/amd64 + const KeyF1 — windows/amd64 + const KeyF10 — windows/amd64 + const KeyF11 — windows/amd64 + const KeyF12 — windows/amd64 + const KeyF13 — windows/amd64 + const KeyF14 — windows/amd64 + const KeyF15 — windows/amd64 + const KeyF16 — windows/amd64 + const KeyF17 — windows/amd64 + const KeyF18 — windows/amd64 + const KeyF19 — windows/amd64 + const KeyF2 — windows/amd64 + const KeyF20 — windows/amd64 + const KeyF21 — windows/amd64 + const KeyF22 — windows/amd64 + const KeyF23 — windows/amd64 + const KeyF24 — windows/amd64 + const KeyF3 — windows/amd64 + const KeyF4 — windows/amd64 + const KeyF5 — windows/amd64 + const KeyF6 — windows/amd64 + const KeyF7 — windows/amd64 + const KeyF8 — windows/amd64 + const KeyF9 — windows/amd64 + const KeyG — windows/amd64 + const KeyH — windows/amd64 + const KeyHelp — windows/amd64 + const KeyHome — windows/amd64 + const KeyI — windows/amd64 + const KeyIco00 — windows/amd64 + const KeyIcoClear — windows/amd64 + const KeyIcoHelp — windows/amd64 + const KeyImeAccept — windows/amd64 + const KeyImeConvert — windows/amd64 + const KeyImeFinal — windows/amd64 + const KeyImeHangul — windows/amd64 + const KeyImeHanja — windows/amd64 + const KeyImeJunja — windows/amd64 + const KeyImeKana — windows/amd64 + const KeyImeKanji — windows/amd64 + const KeyImeModeChange — windows/amd64 + const KeyImeNonConvert — windows/amd64 + const KeyImeOff — windows/amd64 + const KeyImeOn — windows/amd64 + const KeyImeProcessKey — windows/amd64 + const KeyInsert — windows/amd64 + const KeyJ — windows/amd64 + const KeyK — windows/amd64 + const KeyL — windows/amd64 + const KeyLaunchApp1 — windows/amd64 + const KeyLaunchApp2 — windows/amd64 + const KeyLaunchMail — windows/amd64 + const KeyLaunchMediaSelect — windows/amd64 + const KeyLeft — windows/amd64 + const KeyLeftAlt — windows/amd64 + const KeyLeftButton — windows/amd64 + const KeyLeftControl — windows/amd64 + const KeyLeftShift — windows/amd64 + const KeyLeftWin — windows/amd64 + const KeyM — windows/amd64 + const KeyMediaNextTrack — windows/amd64 + const KeyMediaPlayPause — windows/amd64 + const KeyMediaPreviousTrack — windows/amd64 + const KeyMediaStop — windows/amd64 + const KeyMiddleButton — windows/amd64 + const KeyMinus — windows/amd64 + const KeyMultiply — windows/amd64 + const KeyN — windows/amd64 + const KeyNoName — windows/amd64 + const KeyNum0 — windows/amd64 + const KeyNum1 — windows/amd64 + const KeyNum2 — windows/amd64 + const KeyNum3 — windows/amd64 + const KeyNum4 — windows/amd64 + const KeyNum5 — windows/amd64 + const KeyNum6 — windows/amd64 + const KeyNum7 — windows/amd64 + const KeyNum8 — windows/amd64 + const KeyNum9 — windows/amd64 + const KeyNumLock — windows/amd64 + const KeyO — windows/amd64 + const KeyOem1 — windows/amd64 + const KeyOem102 — windows/amd64 + const KeyOem2 — windows/amd64 + const KeyOem3 — windows/amd64 + const KeyOem4 — windows/amd64 + const KeyOem5 — windows/amd64 + const KeyOem6 — windows/amd64 + const KeyOem7 — windows/amd64 + const KeyOem8 — windows/amd64 + const KeyOemAttn — windows/amd64 + const KeyOemAuto — windows/amd64 + const KeyOemAx — windows/amd64 + const KeyOemClear — windows/amd64 + const KeyOemComma — windows/amd64 + const KeyOemCopy — windows/amd64 + const KeyOemCuSel — windows/amd64 + const KeyOemEnlw — windows/amd64 + const KeyOemFinish — windows/amd64 + const KeyOemFjJisho — windows/amd64 + const KeyOemFjLoya — windows/amd64 + const KeyOemFjMasshou — windows/amd64 + const KeyOemFjRoya — windows/amd64 + const KeyOemFjTouroku — windows/amd64 + const KeyOemJump — windows/amd64 + const KeyOemMinus — windows/amd64 + const KeyOemNBackTab — windows/amd64 + const KeyOemNecEqual — windows/amd64 + const KeyOemPa1 — windows/amd64 + const KeyOemPa2 — windows/amd64 + const KeyOemPa3 — windows/amd64 + const KeyOemPeriod — windows/amd64 + const KeyOemPlus — windows/amd64 + const KeyOemReset — windows/amd64 + const KeyOemWsControl — windows/amd64 + const KeyP — windows/amd64 + const KeyPa1 — windows/amd64 + const KeyPageDown — windows/amd64 + const KeyPageUp — windows/amd64 + const KeyPause — windows/amd64 + const KeyPlay — windows/amd64 + const KeyPlus — windows/amd64 + const KeyPrint — windows/amd64 + const KeyPrintScreen — windows/amd64 + const KeyQ — windows/amd64 + const KeyR — windows/amd64 + const KeyRight — windows/amd64 + const KeyRightAlt — windows/amd64 + const KeyRightButton — windows/amd64 + const KeyRightControl — windows/amd64 + const KeyRightShift — windows/amd64 + const KeyRightWin — windows/amd64 + const KeyS — windows/amd64 + const KeyScrollLock — windows/amd64 + const KeySelect — windows/amd64 + const KeySeparator — windows/amd64 + const KeyShift — windows/amd64 + const KeySleep — windows/amd64 + const KeySpace — windows/amd64 + const KeyT — windows/amd64 + const KeyTab — windows/amd64 + const KeyU — windows/amd64 + const KeyUnicodePacket — windows/amd64 + const KeyUp — windows/amd64 + const KeyV — windows/amd64 + const KeyVolumeDown — windows/amd64 + const KeyVolumeMute — windows/amd64 + const KeyVolumeUp — windows/amd64 + const KeyW — windows/amd64 + const KeyX — windows/amd64 + const KeyXButton1 — windows/amd64 + const KeyXButton2 — windows/amd64 + const KeyY — windows/amd64 + const KeyZ — windows/amd64 + const KeyZoom — windows/amd64 + func CaptureMonitor(m Monitor) (image.Image, error) — windows/amd64 + func CaptureMonitors(monitors []Monitor) (image.Image, error) — windows/amd64 + func CaptureScreen(x, y, width, height int) (image.Image, error) — windows/amd64 + func CaptureScreenRect(r Rectangle) (image.Image, error) — windows/amd64 + func CaptureWindow(w Window) (image.Image, error) — windows/amd64 + func CaptureWindowContent(w Window) (image.Image, error) — windows/amd64 + func ClickLeftMouse() error — windows/amd64 + func ClickLeftMouseAt(x, y int) error — windows/amd64 + func ClickMiddleMouse() error — windows/amd64 + func ClickMiddleMouseAt(x, y int) error — windows/amd64 + func ClickRightMouse() error — windows/amd64 + func ClickRightMouseAt(x, y int) error — windows/amd64 + func ClipboardText() (string, error) — windows/amd64 + func MoveMouseBy(dx, dy int) error — windows/amd64 + func MoveMouseTo(x, y int) error — windows/amd64 + func PressKey(key uint16) error — windows/amd64 + func PressLeftMouse() error — windows/amd64 + func PressLeftMouseAt(x, y int) error — windows/amd64 + func PressMiddleMouse() error — windows/amd64 + func PressMiddleMouseAt(x, y int) error — windows/amd64 + func PressRightMouse() error — windows/amd64 + func PressRightMouseAt(x, y int) error — windows/amd64 + func ReleaseKey(key uint16) error — windows/amd64 + func ReleaseLeftMouse() error — windows/amd64 + func ReleaseLeftMouseAt(x, y int) error — windows/amd64 + func ReleaseMiddleMouse() error — windows/amd64 + func ReleaseMiddleMouseAt(x, y int) error — windows/amd64 + func ReleaseRightMouse() error — windows/amd64 + func ReleaseRightMouseAt(x, y int) error — windows/amd64 + func SetClipboardText(text string) error — windows/amd64 + func Type(s string) error — windows/amd64 + func TypeKey(key uint16) error — windows/amd64 + func TypeWithDelay(s string, delay time.Duration) error — windows/amd64 + type Monitor struct — windows/amd64 + Primary bool + WorkArea Rectangle + func Monitors() ([]Monitor, error) + func PrimaryMonitor() (Monitor, error) + type Rectangle struct — windows/amd64 + Height int + Width int + X int + Y int + type Window struct — windows/amd64 + ClassName string + Content Rectangle + Handle w32.HWND + Maximized bool + Minimized bool + Title string + Visible bool + func ForegroundWindow() (Window, error) + func Windows() ([]Window, error) + func (w *Window) BringToForeground() error + func (w *Window) Hide() + func (w *Window) Maximize() + func (w *Window) Minimize() + func (w *Window) Restore() + func (w *Window) Show() + func (w *Window) Update()