Documentation ¶
Overview ¶
Package gotomation is cross-platform system automation library.
Index ¶
- Constants
- type KeyCode
- type KeyModifier
- type Keyboard
- type Mouse
- type MouseButton
- type Screen
- func (s Screen) Capture() (image.Image, error)
- func (s Screen) CaptureRegion(rect image.Rectangle) (image.Image, error)
- func (s Screen) Close()
- func (s Screen) H() int
- func (s Screen) ID() int
- func (s Screen) Keyboard() Keyboard
- func (s Screen) Mouse() Mouse
- func (s Screen) RawCapture() (image.Image, error)
- func (s Screen) RawCaptureRegion(rect image.Rectangle) (image.Image, error)
- func (s Screen) W() int
- func (s Screen) X() int
- func (s Screen) Y() int
Constants ¶
View Source
const ( SHIFT KeyModifier = 0x0001 ALT = 0x0002 CONTROL = 0x0004 META = 0x0008 WIN = META COMMAND = META )
View Source
const ( MouseLeft MouseButton = 1 MouseCenter = 2 MouseRight = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyModifier ¶
type KeyModifier uint16
type Keyboard ¶
type Keyboard interface { SetTypeSpeed(charPerMin int) TypeSpeed() int KeyPress(code KeyCode, modifiers ...KeyModifier) error KeyDown(code KeyCode, modifiers ...KeyModifier) error KeyUp(code KeyCode, modifiers ...KeyModifier) error Type(str string) error TypeQuickly(str string) error }
type Mouse ¶
type Mouse interface { GetPosition() (x, y int) Move(x, y int, duration time.Duration) error MoveQuickly(x, y int) error Click() error ClickWith(button MouseButton) error DoubleClick() error DoubleClickWith(button MouseButton) error Drag(x, y int) error DragWith(button MouseButton, x, y int) error Scroll(x, y int, duration time.Duration) error }
type MouseButton ¶
type MouseButton int
type Screen ¶
type Screen struct {
// contains filtered or unexported fields
}
func (Screen) CaptureRegion ¶
func (Screen) RawCaptureRegion ¶
Click to show internal directories.
Click to hide internal directories.