Update README.md

This commit is contained in:
vcaesar 2021-11-17 14:52:05 -04:00
parent 15d5d147bc
commit 4302f69b95
2 changed files with 19 additions and 11 deletions

View File

@ -37,8 +37,8 @@ RobotGo supports Mac, Windows, and Linux(X11); and robotgo supports arm64 and x8
## Docs
- [GoDoc](https://godoc.org/github.com/go-vgo/robotgo) <br>
- [API Docs](https://github.com/go-vgo/robotgo/blob/master/docs/doc.md) &nbsp;&nbsp;&nbsp; (Deprecated, no updated)
- [API Docs](https://github.com/go-vgo/robotgo/blob/master/docs/doc.md) (Deprecated, no updated)
- [Chinese Docs](https://github.com/go-vgo/robotgo/blob/master/docs/doc_zh.md) (Deprecated, no updated)
## Binding:
@ -59,7 +59,7 @@ GCC
#### For Mac OS X:
Xcode Command Line Tools (And Privacy setting: #277 )
Xcode Command Line Tools (And Privacy setting: [#277](#277) )
```
xcode-select --install
@ -67,8 +67,13 @@ xcode-select --install
#### For Windows:
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (Use recommended) or other GCC
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (Use recommended)
```
Or the other GCC (But you should compile the "libpng" with yourself. Or you can removed the bitmap.go.
In the plans, the bitmap.go will moves to the bitmap dir, but break the API. )
```
#### For everything else:
@ -147,7 +152,7 @@ func main() {
robotgo.MoveRelative(0, -10)
robotgo.Drag(10, 10)
robogo.Click("wheelRight")
robotgo.Click("wheelRight")
robotgo.Click("left", true)
robotgo.MoveSmooth(100, 200, 1.0, 10.0)
@ -187,7 +192,7 @@ func main() {
robotgo.KeyTap("i", arr)
robotgo.MilliSleep(100)
robogo.KeyToggle("a")
robotgo.KeyToggle("a")
robotgo.KeyToggle("a", "up")
robotgo.WriteAll("Test")

View File

@ -34,7 +34,7 @@ RobotGo 支持 Mac, Windows, and Linux(X11).
## Docs
- [GoDoc](https://godoc.org/github.com/go-vgo/robotgo) <br>
- [中文文档](https://github.com/go-vgo/robotgo/blob/master/docs/doc_zh.md)&nbsp;&nbsp;&nbsp; (弃用)
- [中文文档](https://github.com/go-vgo/robotgo/blob/master/docs/doc_zh.md) (弃用)
- [English Docs](https://github.com/go-vgo/robotgo/blob/master/docs/doc.md) (弃用)
## Binding:
@ -55,7 +55,7 @@ GCC
#### For Mac OS X:
Xcode Command Line Tools (And Privacy setting: #277 )
Xcode Command Line Tools (And Privacy setting: [#277](#277) )
```
xcode-select --install
@ -63,8 +63,11 @@ xcode-select --install
#### For Windows:
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (推荐使用) or other GCC
[MinGW-w64](https://sourceforge.net/projects/mingw-w64/files) (推荐使用)
```
Or the other GCC (But you should compile the "libpng" with yourself. Or you can removed the bitmap.go )
```
#### For everything else (Linux 等其他系统):
@ -135,7 +138,7 @@ func main() {
robotgo.Scroll(100, 0)
robotgo.MilliSleep(100)
// robotgo.ScrollRelative(10, -100)
robogo.ScrollSmooth(-10, 6)
robotgo.ScrollSmooth(-10, 6)
robotgo.MouseSleep = 100
robotgo.Move(10, 20)
@ -145,7 +148,7 @@ func main() {
robotgo.Click("left", true)
robotgo.MoveSmooth(100, 200, 1.0, 10.0)
robogo.Toggle("left")
robotgo.Toggle("left")
robotgo.Toggle("left", "up")
}
```