V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
vway
V2EX  ›  问与答

Robotgo v0.80.0 发布了, Go 跨平台 GUI 自动化. 增加异步事件和多组合键监听 hook 支持

  •  
  •   vway · 2019-03-13 07:57:39 +08:00 · 1735 次点击
    这是一个创建于 2072 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Robotgo v0.80.0 发布了,Golang 跨平台控制鼠标、键盘、位图、屏幕、窗口句柄以及全局事件监听。

    项目地址: https://github.com/go-vgo/robotgo

    示例:

    fmt.Println("--- Please press ctrl + shift + q ---")
    ok := robotgo.AddEvents("q", "ctrl", "shift")
    if ok {
    	fmt.Println("add events...")
    }
    

    Sierra Nevada

    Add

    • [NEW] Add asynchronous event support
    • [NEW] Add multiple keypress event listener support
    • [NEW] Add hook start and end func
    • [NEW] Add AddEvents, AddMouse, AddMousePos hook function
    • [NEW] Add mul() scale func and optimize code
    • [NEW] Refactor AddEvent() func and add keycode.go, update example
    • [NEW] Add mouse map keycode
    • [NEW] Add android null file
    • [NEW] Add AddEvent "center" support
    • [NEW] Update README.md, Add binding link

    • [NEW] Format README.md and docs markdown
    • [NEW] Update bitmap_save return code
    • [NEW] Optimize code not defer and remove useless code
    • [NEW] Update code style and godoc
    • [NEW] Update go mod vendor
    • [NEW] Add more event examples
    • [NEW] add AddEvents ,AddMouse, AddMousePos examples code

    Update

    • [NEW] Update event example code add print hint
    • [NEW] Update godoc
    • [NEW] Update CHANGELOG.md
    • [NEW] Update .gitignore
    • [NEW] Update code style and examples
    • [NEW] Update pkg to newest
    • [NEW] Update CI add go1.12.x support
    • [NEW] Move GetText() func code

    Fix

    • [FIX] Add AddEvents func, Fixed #98, #61, #69...
    • [FIX] Add asynchronous event support, Fixed #196, #89...
    • [FIX] add AddMouse func, Fixed #138
    • [FIX] Update _Ctype_char to C.char, Fixed go1.12 build error #191
    • [FIX] Update hook, Fixed #195 warning and json break bug
    • [FIX] Fixed color picker, Update README.md and docs

    See Commits for more details, after Jan 7.

    2 条回复    2020-05-27 12:46:51 +08:00
    hujianxin
        1
    hujianxin  
       2019-04-11 23:40:50 +08:00
    感觉挺好玩的库,但是想不到有啥实际的用途呢,大佬可否指教一下,除了做游戏点击脚本之外,还有什么比较好玩的用途吗?谢谢
    vway
        2
    vway  
    OP
       2020-05-27 12:46:51 +08:00
    @hujianxin RPA 和自动化测试等
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4549 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 01:04 · PVG 09:04 · LAX 17:04 · JFK 20:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.