Documentation
¶
Overview ¶
Package robotgo Go native cross-platform system automation.
Please make sure Golang, GCC, zlib and libpng is installed correctly before installing RobotGo;
See Requirements:
https://github.com/go-vgo/robotgo#requirements
Installation:
go get -u github.com/go-vgo/robotgo
Index ¶
- func ActivePID(pid int32)
- func AddEvent(aeve string) int
- func CaptureScreen(args ...int) C.MMBitmapRef
- func Click(args ...interface{})
- func CloseWindow()
- func Drag(x, y int)
- func DragMouse(x, y int)
- func FindIds(name string) ([]int32, error)
- func FindName(pid int32) (string, error)
- func FindNames() ([]string, error)
- func GetActive() C.MData
- func GetBHandle() int
- func GetHandle() int
- func GetMousePos() (int, int)
- func GetPID() int
- func GetPixelColor(x, y int) string
- func GetScreenSize() (int, int)
- func GetTitle() string
- func GetVersion() string
- func GetXDisplayName() string
- func IsValid() bool
- func KeyTap(args ...interface{})
- func KeyToggle(args ...string) string
- func LEvent(aeve string) int
- func MouseClick(args ...interface{})
- func MouseToggle(args ...interface{})
- func Move(x, y int)
- func MoveClick(x, y int, args ...interface{})
- func MoveMouse(x, y int)
- func MoveMouseSmooth(x, y int, args ...float64)
- func MoveSmooth(x, y int, args ...float64)
- func PidExists(pid int32) (bool, error)
- func Pids() ([]int32, error)
- func ReadAll() (string, error)
- func ScrollMouse(x int, y string)
- func SetActive(win C.MData)
- func SetHandle(hwnd int)
- func SetKeyDelay(x int)
- func SetKeyboardDelay(x int)
- func SetMouseDelay(x int)
- func SetXDisplayName(name string) string
- func ShowAlert(title, msg string, args ...string) int
- func StopEvent()
- func Try(fun func(), handler func(interface{}))
- func TypeStr(str string)
- func TypeStrDelay(x string, y int)
- func TypeString(x string)
- func TypeStringDelayed(x string, y int)
- func WriteAll(text string)
- type Bitmap
- type MPoint
- type Map
- type Nps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureScreen ¶
func CaptureScreen(args ...int) C.MMBitmapRef
CaptureScreen capture the screen return bitmap(c struct)
func KeyTap ¶
func KeyTap(args ...interface{})
KeyTap tap the keyboard;
See keys:
https://github.com/go-vgo/robotgo/blob/master/docs/keys.md
func KeyToggle ¶
KeyToggle toggle the keyboard
See keys:
https://github.com/go-vgo/robotgo/blob/master/docs/keys.md
func MoveMouseSmooth ¶
MoveMouseSmooth move the mouse smooth
func SetKeyboardDelay ¶
func SetKeyboardDelay(x int)
SetKeyboardDelay set keyboard delay, Wno-deprecated
func TypeStringDelayed ¶
TypeStringDelayed type string delayed, Wno-deprecated
Types ¶
type Bitmap ¶
type Bitmap struct { ImageBuffer *uint8 Width int Height int Bytewidth int BitsPerPixel uint8 BytesPerPixel uint8 }
Bitmap is Bitmap struct
func BCaptureScreen ¶
BCaptureScreen capture the screen and return bitmap(go struct), Wno-deprecated
func GoCaptureScreen ¶
GoCaptureScreen capture the screen and return bitmap(go struct)
Click to show internal directories.
Click to hide internal directories.