Robotn
Golang Desktop Automation, binding other language. Control the mouse, keyboard, bitmap, read the screen, Window Handle and global event listener.
Robotn supports Mac, Windows, and Linux(X11). Robot supports go, javascript, python and other.
Contents
Docs
Requirements:
Now, Please make sure Golang, GCC
is installed correctly before installing robotgo.
You can Build from source code.
Install robotn
npm install robotn
Examples:
Mouse
var robot = ; robot;robot;robot;
python
import robot robot.scroll(10, 10)robot.mouseClick("left", true)robot.moveSmooth(100, 200, 1.0, 100.0)
Keyboard
var robot = ; robotrobotrobot robot robotvar text = robotconsole
Screen
var robot = ; var pos = robotconsolevar color = robotconsole
Bitmap
var robot = ; var bitmap = robotconsole var pos = robotconsole robot// use `robot.freeBitmap(bit)` to free the bitmaprobot
Event
var robot = ; var keve = robot;if keve console; var s = robot;if s console;
Window
var robot = ; var fpid = robotconsole if fpidlength > 0 robot robot robot var isExist = robotif isExist console robot var abool = robotif abool == 0 console var title = robotconsole
Build from source code:
Install robotgo
go get -u github.com/go-vgo/robotgo
Build-tools
go get -v github.com/vcaesar/gocs
Building
gocs -n robotgo
node:
Install npm modules
npm install
python
pip install cffi
Authors
Plans
- Update Find an image on screen, read pixels from an image
- Update Window Handle
- Try support Android, maybe support IOS
Donate
Supporting robotgo, buy me a coffee.
Paypal
Donate money by paypal to my account vzvway@gmail.com
Contributors
- See contributors page for full list of contributors.
- See Contribution Guidelines.
License
Robotgo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT.