From 4302f69b95cd852a3a7273ba4d2718ceb746c5db Mon Sep 17 00:00:00 2001 From: vcaesar Date: Wed, 17 Nov 2021 14:52:05 -0400 Subject: [PATCH] Update README.md --- README.md | 17 +++++++++++------ README_zh.md | 13 ++++++++----- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 36eea26..27c4225 100644 --- a/README.md +++ b/README.md @@ -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)
- - - [API Docs](https://github.com/go-vgo/robotgo/blob/master/docs/doc.md)     (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") diff --git a/README_zh.md b/README_zh.md index 8e013ff..23a143a 100644 --- a/README_zh.md +++ b/README_zh.md @@ -34,7 +34,7 @@ RobotGo 支持 Mac, Windows, and Linux(X11). ## Docs - [GoDoc](https://godoc.org/github.com/go-vgo/robotgo)
-- [中文文档](https://github.com/go-vgo/robotgo/blob/master/docs/doc_zh.md)    (弃用) +- [中文文档](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") } ```