Versions in this module Expand all Collapse all v1 v1.0.5 Nov 25, 2021 Changes in this version + func GetMainDisplay() *C.Display v1.0.4 Nov 25, 2021 v1.0.3 Nov 25, 2021 v1.0.2 Nov 25, 2021 v1.0.1 Nov 25, 2021 Changes in this version + const Version + var Keycode = uMap + var MouseMap = uMap + func ActiveName(name string) error + func ActivePID(pid int32, args ...int) error + func ActivePIDC(pid int32, args ...int) error — js/wasm, linux/amd64 + func AddEvent(key string) bool + func AddEvents(key string, arr ...string) bool + func AddMouse(btn string, x ...int16) bool + func AddMousePos(x, y int16) bool + func BitmapClick(bitmap C.MMBitmapRef, args ...interface{}) + func BitmapFromStr(str string) C.MMBitmapRef + func BitmapStr(str string) C.MMBitmapRef + func ByteToImg(b []byte) (image.Image, error) + func CaptureScreen(args ...int) C.MMBitmapRef + func CharCodeAt(s string, n int) rune + func CheckMouse(btn string) C.MMMouseButton + func Click(args ...interface{}) + func CloseWindow(args ...int32) + func Convert(opath, spath string, args ...int) + func CopyBitPB(bitmap C.MMBitmapRef) bool + func CopyBitpb(bitmap C.MMBitmapRef) bool + func CountBitmap(bitmap, sbit C.MMBitmapRef, args ...float32) int + func CountColor(color CHex, args ...interface{}) int + func CountColorCS(color CHex, x, y, w, h int, args ...float64) int + func DecodeImg(path string) (image.Image, string, error) + func DeepCopyBit(bitmap C.MMBitmapRef) C.MMBitmapRef + func Drag(x, y int, args ...string) + func DragMouse(x, y int, args ...string) + func DragSmooth(x, y int, args ...interface{}) + func End() + func EventEnd() + func EventHook(when uint8, keysPressed []string, callback func(hook.Event)) + func EventProcess(events chan hook.Event) chan bool + func EventStart() chan hook.Event + func FindBitmap(bit C.MMBitmapRef, args ...interface{}) (int, int) + func FindCBitmap(bmp CBitmap, args ...interface{}) (int, int) + func FindColor(color CHex, args ...interface{}) (int, int) + func FindColorCS(color CHex, x, y, w, h int, args ...float64) (int, int) + func FindIds(name string) ([]int32, error) + func FindName(pid int32) (string, error) + func FindNames() ([]string, error) + func FindPath(pid int32) (string, error) + func FindPic(path string, args ...interface{}) (int, int) + func FindWindow(str string) win.HWND — windows/amd64 + func FreeBitmap(bitmap C.MMBitmapRef) + func FreeMMPointArr(pointArray C.MMPointArrayRef) + func GetActive() C.MData + func GetBHandle() int + func GetBounds(pid int32, args ...int) (int, int, int, int) + func GetColor(bitmap C.MMBitmapRef, x, y int) C.MMRGBHex + func GetColors(bitmap C.MMBitmapRef, x, y int) string + func GetHWND() win.HWND — windows/amd64 + func GetHandPid(pid int32, args ...int32) C.MData + func GetHandle() int + func GetImgSize(imgPath string) (int, int) + func GetMouseColor() string + func GetMousePos() (int, int) + func GetPID() int32 + func GetPixelColor(x, y int) string + func GetPortion(bit C.MMBitmapRef, x, y, w, h int) C.MMBitmapRef + func GetPxColor(x, y int) C.MMRGBHex + func GetScaleSize() (int, int) + func GetScreenSize() (int, int) + func GetText(imgPath string, args ...string) (string, error) + func GetTitle(args ...int32) string + func GetVersion() string + func GetXDisplayName() string + func GetXId(xu *xgbutil.XUtil, pid int32) (xproto.Window, error) — js/wasm, linux/amd64 + func GetXidFromPid(xu *xgbutil.XUtil, pid int32) (xproto.Window, error) — js/wasm, linux/amd64 + func GoString(char *C.char) string + func GrabAll() + func HexToRgb(hex uint32) *C.uint8_t + func Is64Bit() bool + func IsValid() bool + func KeyTap(tapKey string, args ...interface{}) string + func KeyToggle(key string, args ...string) string + func Kill(pid int32) error + func MaxWindow(pid int32, args ...interface{}) + func MicroSleep(tm float64) + func MilliSleep(tm int) + func MinWindow(pid int32, args ...interface{}) + func MouseClick(args ...interface{}) + func MouseToggle(togKey string, args ...interface{}) int + func Move(x, y int) + func MoveArgs(x, y int) (int, int) + func MoveClick(x, y int, args ...interface{}) + func MoveMouse(x, y int) + func MoveMouseSmooth(x, y int, args ...interface{}) bool + func MoveRelative(x, y int) + func MoveSmooth(x, y int, args ...interface{}) bool + func MoveSmoothRelative(x, y int, args ...interface{}) + func MovesClick(x, y int, args ...interface{}) + func Mul(x int) int + func OpenBitmap(gpath string, args ...int) C.MMBitmapRef + func OpenImg(path string) ([]byte, error) + func PadHex(hex C.MMRGBHex) string + func PasteStr(str string) string + func PidExists(pid int32) (bool, error) + func Pids() ([]int32, error) + func PointInBounds(bitmap C.MMBitmapRef, x, y int) bool + func ReadAll() (string, error) + func ReadBitmap(bitmap C.MMBitmapRef) bool + func RgbToHex(r, g, b uint8) C.uint32_t + func SaveBitmap(bitmap C.MMBitmapRef, gpath string, args ...int) string + func SaveCapture(spath string, args ...int) + func SaveImg(b []byte, path string) error + func SavePng(img image.Image, path string) error + func Scale() int + func ScaleX() int + func ScaleY() int + func Scaled(x int) int + func Scroll(x, y int, args ...int) + func ScrollMouse(x int, direction string) + func SendInput(nInputs uint32, pInputs unsafe.Pointer, cbSize int32) uint32 — windows/amd64 + func SendMsg(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uintptr — windows/amd64 + func SetActive(win C.MData) + func SetActiveWindow(hwnd win.HWND) win.HWND — windows/amd64 + func SetDelay(d ...int) + func SetFocus(hWnd win.HWND) win.HWND — windows/amd64 + func SetHandle(hwnd int) + func SetHandlePid(pid int32, args ...int32) + func SetKeyDelay(delay int) + func SetKeyboardDelay(delay int) + func SetMouseDelay(delay int) + func SetXDisplayName(name string) string + func ShowAlert(title, msg string, args ...string) bool + func Sleep(tm int) + func Start() chan hook.Event + func StopEvent() + func StrToImg(data string) (image.Image, error) + func SysScale() float64 + func ToBitmapBytes(bit C.MMBitmapRef) []byte + func ToByteImg(img image.Image) []byte + func ToCBitmap(bit Bitmap) C.MMBitmapRef + func ToImage(bit C.MMBitmapRef) image.Image + func ToMMBitmapRef(bit CBitmap) C.MMBitmapRef + func ToMMRGBHex(hex CHex) C.MMRGBHex + func ToStringImg(img image.Image) string + func ToUC(text string) []string + func TocharBitmap(bit C.MMBitmapRef) *C.char + func TostringBitmap(bit C.MMBitmapRef) string + func Try(fun func(), handler func(interface{})) + func TypeStr(str string, args ...float64) + func TypeStrDelay(str string, delay int) + func TypeString(str string, delay ...int) + func TypeStringDelayed(str string, delay int) + func U32ToHex(hex C.uint32_t) C.MMRGBHex + func U8ToHex(hex *C.uint8_t) C.MMRGBHex + func UnGrabAll() + func UnicodeType(str uint32) + func WriteAll(text string) error + type Bitmap struct + BitsPixel uint8 + BytesPerPixel uint8 + Bytewidth int + Height int + ImgBuf *uint8 + Width int + func GoCaptureScreen(args ...int) Bitmap + func ToBitmap(bit C.MMBitmapRef) Bitmap + type CBitmap C.MMBitmapRef + type CHex C.MMRGBHex + func UintToHex(u uint32) CHex + type MPoint struct + X int + Y int + func FindEveryBitmap(bit C.MMBitmapRef, args ...interface{}) (posArr []MPoint) + func FindEveryColor(color CHex, args ...interface{}) (posArr []MPoint) + type Map map[string]interface + type Nps struct + Name string + Pid int32 + func Process() ([]Nps, error)