Skip to content

Commit 86767d2

Browse files
authored
Merge pull request #734 from go-vgo/bitmap-pr
Update: move old docs to archived
2 parents dd208c6 + da8bc79 commit 86767d2

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

README_zh.md renamed to docs/archive/README_zh.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Robotgo
22

3-
## !!! Warning: this page not updated !!!
3+
# !!! Warning: this page not updated !!!
44

55
[![Build Status](https://github.com/go-vgo/robotgo/workflows/Go/badge.svg)](https://github.com/go-vgo/robotgo/commits/master)
66
[![CircleCI Status](https://circleci.com/gh/go-vgo/robotgo.svg?style=shield)](https://circleci.com/gh/go-vgo/robotgo)
@@ -20,6 +20,7 @@ RobotGo 支持 Mac, Windows, and Linux(X11).
2020
提 Issues 请到 [Github](https://github.com/go-vgo/robotgo), 便于统一管理和即时更新; `REDAME_zh.md 已废弃, 不再更新`
2121

2222
## Contents
23+
2324
- [Docs](#docs)
2425
- [Binding](#binding)
2526
- [Requirements](#requirements)
@@ -34,6 +35,7 @@ RobotGo 支持 Mac, Windows, and Linux(X11).
3435
- [License](#license)
3536

3637
## Docs
38+
3739
- [GoDoc](https://godoc.org/github.com/go-vgo/robotgo) <br>
3840

3941
<!-- - [中文文档](https://github.com/go-vgo/robotgo/blob/master/docs/doc_zh.md) (弃用)
@@ -44,11 +46,13 @@ RobotGo 支持 Mac, Windows, and Linux(X11).
4446
[Robotn](https://github.com/vcaesar/robotn), binding JavaScript and other, support more language.
4547

4648
## Requirements:
49+
4750
环境要求:
4851

4952
在安装 RobotGo 之前, 请确保 `Golang、GCC` 被正确安装
5053

5154
### ALL:
55+
5256
```
5357
Golang
5458
@@ -57,25 +61,25 @@ GCC
5761

5862
#### For Mac OS X:
5963

60-
Xcode Command Line Tools (And Privacy setting: [#277](https://github.com/go-vgo/robotgo/issues/277) )
64+
Xcode Command Line Tools (And Privacy setting: [#277](https://github.com/go-vgo/robotgo/issues/277) )
6165

6266
```
6367
xcode-select --install
6468
```
6569

6670
#### For Windows:
6771

68-
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (推荐使用)
72+
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (推荐使用)
6973

7074
```
71-
Or the other GCC (But you should compile the "libpng" with yourself.
75+
Or the other GCC (But you should compile the "libpng" with yourself.
7276
Or you can removed the bitmap.go.)
7377
```
7478

7579
#### For everything else (Linux 等其他系统):
7680

7781
```
78-
GCC,
82+
GCC,
7983
libpng(bitmap)
8084
8185
X11 with the XTest extension (also known as the Xtst library)
@@ -84,7 +88,7 @@ X11 with the XTest extension (also known as the Xtst library)
8488
8589
xcb, xkb, libxkbcommon
8690
87-
Clipboard:
91+
Clipboard:
8892
8993
xsel xclip
9094
```
@@ -99,7 +103,6 @@ sudo apt install libx11-dev xorg-dev libxtst-dev libpng++-dev
99103
sudo apt install xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev libxkbcommon-dev
100104

101105
sudo apt install xsel xclip
102-
103106
```
104107

105108
##### Fedora:
@@ -113,6 +116,7 @@ sudo dnf install xsel xclip
113116
```
114117

115118
## Installation:
119+
116120
With Go module support (Go 1.11+), just import:
117121

118122
```go
@@ -128,14 +132,14 @@ go get github.com/go-vgo/robotgo
128132
png.h: No such file or directory? Please see [issues/47](https://github.com/go-vgo/robotgo/issues/47).
129133

130134
## Update:
135+
131136
```
132137
go get -u github.com/go-vgo/robotgo
133138
```
134139

135140
注意 go1.10.x C 文件编译缓存问题, [golang #24355](https://github.com/golang/go/issues/24355).
136141
`go mod vendor` problem, [golang #26366](https://github.com/golang/go/issues/26366).
137142

138-
139143
## [Examples:](https://github.com/go-vgo/robotgo/blob/master/examples)
140144

141145
#### [鼠标](https://github.com/go-vgo/robotgo/blob/master/examples/mouse/main.go)
@@ -256,7 +260,7 @@ func main() {
256260
bitmap := robotgo.CaptureScreen(10, 20, 30, 40)
257261
// use `defer robotgo.FreeBitmap(bit)` to free the bitmap
258262
defer robotgo.FreeBitmap(bitmap)
259-
263+
260264
fmt.Println("bitmap...", bitmap)
261265
img := robotgo.ToImage(bitmap)
262266
robotgo.SavePng(img, "test_1.png")
@@ -445,6 +449,7 @@ func main() {
445449
## CrossCompiling
446450

447451
##### Windows64 to windows32
452+
448453
```Go
449454
SET CGO_ENABLED=1
450455
SET GOARCH=386
@@ -454,6 +459,7 @@ go build main.go
454459
#### Other to windows
455460

456461
Install Requirements (Ubuntu):
462+
457463
```bash
458464
sudo apt install gcc-multilib
459465
sudo apt install gcc-mingw-w64
@@ -472,11 +478,13 @@ GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64
472478
```
473479

474480
## Authors
475-
* [The author is vz](https://github.com/vcaesar)
476-
* [Maintainers](https://github.com/orgs/go-vgo/people)
477-
* [Contributors](https://github.com/go-vgo/robotgo/graphs/contributors)
481+
482+
- [The author is vz](https://github.com/vcaesar)
483+
- [Maintainers](https://github.com/orgs/go-vgo/people)
484+
- [Contributors](https://github.com/go-vgo/robotgo/graphs/contributors)
478485

479486
## Plans
487+
480488
- 更新 Find an image on screen, read pixels from an image
481489
- 更新 Window Handle
482490
- 尝试支持 Android, 也许支持 IOS
@@ -490,4 +498,4 @@ GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64
490498

491499
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.
492500

493-
See [LICENSE-APACHE](http://www.apache.org/licenses/LICENSE-2.0), [LICENSE-MIT](https://github.com/go-vgo/robotgo/blob/master/LICENSE).
501+
See [LICENSE-APACHE](http://www.apache.org/licenses/LICENSE-2.0), [LICENSE-MIT](https://github.com/go-vgo/robotgo/blob/master/LICENSE).
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)