原生 Golang 的跨平台自动化系统 RobotGo

码农软件 · 软件分类 · 其他开发相关 · 2019-10-17 23:12:47

软件介绍

Go 语言跨平台 GUI 自动化系统,控制键盘、鼠标、位图和屏幕,操作窗口句柄以及全局事件监听;

支持 Mac, Windows, and Linux (X11) 系统;

用于自动化测试工具和远程控制以及自动化游戏等工具的编写;

简洁高效的跨平台工具自动化库

安装:

go get -u github.com/go-vgo/robotgo

示例:

 

package main

import (
    "fmt"
    "github.com/go-vgo/robotgo"
)

func main() {
  robotgo.ScrollMouse(10, "up")
  robotgo.MouseClick("left",true)

  x, y := robotgo.GetMousePos()
  fmt.Println("pos:", x, y)

  robotgo.KeyTap("i", "alt", "command")
  arr := []string{"alt", "command"}
  robotgo.KeyTap("i", arr)

  mleft := robotgo.AddEvent("mleft")
  if mleft == 0 {
    fmt.Println("you press...", "mouse left button")
  }
}

 

项目详情:

  • 项目主页:暂无,详见Github

 

本文地址:https://codercto.com/soft/d/16993.html

Thinking Recursively

Thinking Recursively

Eric S. Roberts / Wiley / 1986-1-17 / USD 85.67

The process of solving large problems by breaking them down into smaller, more simple problems that have identical forms. Thinking Recursively: A small text to solve large problems. Concentrating on t......一起来看看 《Thinking Recursively》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具