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

Robotgo v0.60.0 发布了, Go 桌面自动化, 重构 window 和 example.

  •  
  •   vway ·
    vcaesar · 2018-10-10 01:37:53 +08:00 · 3633 次点击
    这是一个创建于 2226 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    Add

    • [NEW] Add GetBounds func support (add get_client and get_frame C_func)
    • [NEW] Add GetXId and GetXidFromPid func
    • [NEW] Refactoring GetTitle() func allow by pid
    • [NEW] Refactoring CloseWindow() allow by pid
    • [NEW] Add SetHandPid() and GetHandPid() func support
    • [NEW] Add FindCBitmap func support

    • [NEW] Refactoring bitmap example code
    • [NEW] Refactoring key example code
    • [NEW] Refactoring window example code
    • [NEW] Add an cbitmap example [#169]
    • [NEW] Refactoring screen and event example code
    • [NEW] Refactoring mouse example code

    • [NEW] Add more godoc
    • [NEW] Add getTitle example by pid
    • [NEW] Add close window example by pid
    • [NEW] Add getBounds example
    • [NEW] Split func and remove dep more clean
    • [NEW] Simplify SaveCapture code
    • [NEW] Update and merged get_pixel_color remove duplicate code
    • [NEW] Update README.md, add Note go1.10.x

    Update

    • [NEW] Update issue template more obvious
    • [NEW] Move public mdata to pub
    • [NEW] Update godoc
    • [NEW] Update CHANGELOG.md
    • [NEW] Move some pub method to pub.h and rename some c_func
    • [NEW] Update code style and name style ( key, window and other )
    • [NEW] Update robotgo unix export getXidFromPid func
    • [NEW] Update set handle return use bool

    • [NEW] Update code style and move scale to win_sys.h
    • [NEW] Update example add more lang
    • [NEW] Update pkg to newest
    • [NEW] Remove duplicate code and old useless code
    • [NEW] Update and clean README.md
    • [NEW] Update CI add go1.11.x version
    • [NEW] Update scroll godoc and clearer parameter name
    • [NEW] Update hint and code style
    • [NEW] Update FindIds doc and only set name once in loop

    Fix

    • [FIX] Update type_string fixed #155, fixed window missing some character
    • [FIX] Fixed GetWindowText return address of local variable and not use ternary operator ( GetTittle )
    • [FIX] Update README.md Fixed Release badge

    See Commits for more details, after Aug 8.

    9 条回复    2019-11-26 10:44:24 +08:00
    NickCarter
        1
    NickCarter  
       2018-10-10 07:22:12 +08:00 via iPhone
    好东西
    pango
        2
    pango  
       2018-10-10 08:13:34 +08:00
    利器
    vway
        3
    vway  
    OP
       2018-10-10 08:43:40 +08:00   ❤️ 1
    @NickCarter
    @pango 🤝, 欢迎贡献
    jisibencom
        4
    jisibencom  
       2018-10-10 08:48:21 +08:00 via Android
    有没有按键精灵那么简单呢?能后台运行
    vway
        5
    vway  
    OP
       2018-10-10 08:52:56 +08:00
    @jisibencom 熟悉 go 语言就行, API 很简单, 跨平台
    vway
        6
    vway  
    OP
       2018-10-10 20:11:58 +08:00
    @jisibencom 后台运行? 都是调系统 API, 按键精灵只是封装了图形界面
    playniuniu
        7
    playniuniu  
       2018-11-24 19:29:29 +08:00 via iPhone
    赞一下 好项目 希望能继续更新
    wzw
        8
    wzw  
       2018-12-05 07:58:26 +08:00
    @vway #6 windows 的话,可以控制窗口内部的元素吗? 如果可以,岂不是很容易写外挂啦
    RynItme
        9
    RynItme  
       2019-11-26 10:44:24 +08:00
    应该不支持 窗口后台执行吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   6020 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:19 · PVG 10:19 · LAX 18:19 · JFK 21:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.