From 1b5aeacbebc99d69a67de5aed6bc72c56eeab84f Mon Sep 17 00:00:00 2001 From: metalwood <377307289@qq.com> Date: Tue, 24 Jan 2017 11:43:44 +0800 Subject: [PATCH] Update README.md --- README.md | 71 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index c1a0b2e..196d5a9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#Robotgo +#RobotGo @@ -9,17 +9,31 @@ [![Release](https://github-release-version.herokuapp.com/github/go-vgo/robotgo/release.svg?style=flat)](https://github.com/go-vgo/robotgo/releases/latest) [![Join the chat at https://gitter.im/go-vgo/robotgo](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-vgo/robotgo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +This is a work in progress. - >Golang Desktop Automation. Control the mouse, keyboard, bitmap,read the screen,Window Handle and global event listener. + >Golang Desktop Automation. RobotGo supports Mac, Windows, and Linux(X11). This is a work in progress. +##Features + +Mouse control + +Keyboard control + +Screen capture + +Window Handle + +Global event listen -##[API Document](https://github.com/go-vgo/robotgo/blob/master/doc.md)    [中文文档](https://github.com/go-vgo/robotgo/blob/master/doc_zh.md) - Please click API Document;This is a work in progress. + +##[API Docs](https://github.com/go-vgo/robotgo/blob/master/doc.md)    [中文文档](https://github.com/go-vgo/robotgo/blob/master/doc_zh.md) + - [Installation](#installation) - [Update](#update) @@ -28,40 +42,24 @@ This is a work in progress. - [Future](#future) - [Contributors](#contributors) +##Requirement install -##Installation: -``` -go get github.com/go-vgo/robotgo -``` - It's that easy! +Before RobotGo installation, make sure Golang/GCC/zlib & libpng have been installed correctly. -##Update: -``` -go get -u github.com/go-vgo/robotgo -``` -###Requirements: - -####ALL: -``` -Golang -//Gcc -zlib & libpng (bitmap) -``` -####For Mac OS X: - Xcode Command Line Tools +####Under MacOS ``` brew install libpng brew install homebrew/dupes/zlib ``` -####For Windows: +####Under Windows ``` -MinGW or other GCC +MinGW ``` #####[zlib&libpng Windows32 GCC's Course](https://github.com/go-vgo/Mingw32) #####[Download include zlib&libpng Windows64 GCC](https://github.com/go-vgo/Mingw) -####For everything else: +####For everything else ``` GCC @@ -72,7 +70,7 @@ Event: xcb,xkb,libxkbcommon ``` -#####Ubuntu: +#####Under Ubuntu ```yml sudo apt-get install libx11-dev @@ -80,16 +78,19 @@ sudo apt-get install libx11-dev #sudo apt-get install libghc6-x11-dev #sudo apt-get install libgl1-mesa-swx11-dev sudo apt-get install xorg-dev - sudo apt-get install libxtst-dev libpng++-dev - -#Event: - sudo apt-get install xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev sudo apt-get install libxkbcommon-dev ``` -##[Examples:](https://github.com/go-vgo/robotgo/blob/master/example/main.go) + +## RobotGo install or Update + +``` +go get -u github.com/go-vgo/robotgo +``` + +##Examples ###Mouse @@ -213,10 +214,12 @@ func main() { } ``` -##Future +###[More Examples](https://github.com/go-vgo/robotgo/blob/master/example/main.go) + +##TODO - Update Find an image on screen, read pixels from an image - Update Window Handle -- Try support Android,maybe support IOS. +- Try support Android, maybe iOS too ##Contributors