Robotgo v0.70.0 发布了, Go 桌面自动化, 增强 keyboard 和 mouse 操作 - V2EX
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 3895 次点击
    这是一个创建于 2524 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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     Solana     2460 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 27ms UTC 01:08 PVG 09:08 LAX 17:08 JFK 20:08
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86