控制鼠标和键盘Golang? [英] Control the mouse and keyboard Golang?

查看:1031
本文介绍了控制鼠标和键盘Golang?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何控制在操作系统/ X11级别上检索/设置鼠标和触发器键盘事件的位置?这与 Robot类中的Java



据我所知,最有可能不是跨平台解决方案,但是如何在Windows,Linux和Mac上实现这一点?

解决方案

请参阅机器人go ,Golang Native跨平台系统自动化

How would one go about controlling retrieving/setting the position of the mouse and triggier keyboard events on the operating system/X11 level? This is similar to functionality found in the Robot class in Java.

I understand there will most likely not be a cross platform solution, but how would one go about implementing this on Windows, Linux and Mac?

解决方案

Please see robotgo, Golang Native cross-platform system automation

这篇关于控制鼠标和键盘Golang?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆