用到的库是Robotgo,github地址是https://github.com/go-vgo/robotgo
安装
go get github.com/go-vgo/robotgo
出现错误
"gcc": executable file not found in %PATH%
原因是在PATH的路径下找不到gcc命令 解决方法就是安装gcc,官方推荐MinGW-w64
注意安装settings的第二项选择x86_64,安装路径自由选择(例如: D:\mingw-w64),其它默认
新建系统变量C_INCLUDE_PATH, 值为(例如: D:\mingw-w64\mingw64\include)
测试
在终端下输入:gcc -v