V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
vway
V2EX  ›  Go 编程语言

Robotgo v0.70.0 发布了, Go 桌面自动化, 增强 keyboard 和 mouse 操作

  •  
  •   vway ·
    vcaesar · 2019-01-08 06:30:07 +08:00 · 3395 次点击
    这是一个创建于 2153 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    Caloris Montes

    Add

    • [NEW] Update keyboard use sendInput not keybd_event
    • [NEW] Update mouse use sendInput not mouse_event
    • [NEW] Add drag mouse other button support
    • [NEW] Add more numpad key support
    • [NEW] Add numpad key and escape abbreviation support
    • [NEW] Add new window10 zoom ratio
    • [NEW] Add linux numpad key support
    • [NEW] Add key "insert, printscreen" mac support
    • [NEW] Add check mouse button func
    • [NEW] Add keyTap run error return support and update godoc

    • [NEW] Optimize and clearer keytap code
    • [NEW] Optimize and clean keyToggle code
    • [NEW] Update dockerfile clean image
    • [NEW] Add color picker and getMousePos() example
    • [NEW] Use go mod not dep, add go.mod remove dep files
    • [NEW] Add GetColors func return string
    • [NEW] Optimize defer code

    • [NEW] Add more godoc
    • [NEW] Add add key "ctrl", "cmd" [ abbreviation ] support
    • [NEW] Add add key "capslock", "numpad_lock" support
    • [NEW] Add left and right "Ctrl, Shift, Alt, command" key support
    • [NEW] Update check key flags support "cmd" and "ctrl"
    • [NEW] Update key docs
    • [NEW] Add millisleep func and update godoc
    • [NEW] Add AddEvent() key "cmd" support
    • [NEW] Update key example code
    • [NEW] Update README.md, add Note go1.10.x issue
    • [NEW] Update keytap and toggle return "" and code style

    Update

    • [NEW] Update issue template more obvious
    • [NEW] Update godoc
    • [NEW] Update CHANGELOG.md
    • [NEW] Update .gitignore
    • [NEW] Update code style and examples
    • [NEW] Update pkg to newest
    • [NEW] Add more scale example
    • [NEW] Add drag mouse example

    • [NEW] Update key docs and clear file name
    • [NEW] Remove old useless code
    • [NEW] Update README.md
    • [NEW] Update CI add go1.11.4 version

    Fix

    • [FIX] Fixed bitmapClick() parameter bug
    • [FIX] Fixed some README.md typo
    • [FIX] Update scale example code close #153
    • [FIX] Update code style and fixed #endif error

    See Commits for more details, after Otc 8.

    10 条回复    2019-01-09 00:36:51 +08:00
    wzw
        1
    wzw  
       2019-01-08 07:28:02 +08:00 via iPhone
    Windows 下,可以开发一些类似于外挂的程序吗?控制句柄等
    wenzhoou
        2
    wenzhoou  
       2019-01-08 07:37:06 +08:00 via Android
    做不到 pure go 是不是?
    loading
        3
    loading  
       2019-01-08 07:48:38 +08:00 via Android
    能写篇文章和 autohotkey 对比一下吗?
    vway
        4
    vway  
    OP
       2019-01-08 09:28:04 +08:00   ❤️ 1
    @loading 可以, 有空对比一下
    vway
        5
    vway  
    OP
       2019-01-08 09:28:16 +08:00
    @wzw 可以
    vway
        6
    vway  
    OP
       2019-01-08 09:31:00 +08:00
    @wenzhoou pure go 目前没计划, 很多功能可以 puer go, 有些平台代码还是需要依赖 C
    wzw
        7
    wzw  
       2019-01-08 14:24:35 +08:00
    @vway #5 我看了一下中文文档和 api, 希望能给个详细一点的例子, 对于 windows 来说,有时候控制其他程序的需求还是有的
    whyw
        8
    whyw  
       2019-01-08 21:38:49 +08:00
    mark, 越来越强了, 希望持续更新
    vway
        9
    vway  
    OP
       2019-01-09 00:35:58 +08:00
    @whyw 🤝, 欢迎贡献代码
    vway
        10
    vway  
    OP
       2019-01-09 00:36:51 +08:00
    @wzw 可以看 godoc, 会逐步加上更多例子和文档
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2540 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:54 · PVG 12:54 · LAX 20:54 · JFK 23:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.