From 3b176aa9f04cf5b30046d66c74cc0d4441f663b4 Mon Sep 17 00:00:00 2001 From: vCaesar Date: Sun, 11 Jun 2017 19:52:03 +0800 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ README_zh.md | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dde8deb..d228dec 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ func main() { package main import ( + "fmt" "github.com/go-vgo/robotgo" ) @@ -144,6 +145,12 @@ func main() { robotgo.KeyTap("i", "alt", "command") arr := []string{"alt", "command"} robotgo.KeyTap("i", arr) + + robotgo.WriteAll("测试") + text, err := robotgo.ReadAll() + if err == nil { + fmt.Println(text) + } } ``` diff --git a/README_zh.md b/README_zh.md index 145c15b..c5ff22c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -131,7 +131,8 @@ func main() { ```Go package main -import ( +import ( + "fmt" "github.com/go-vgo/robotgo" ) @@ -142,6 +143,12 @@ func main() { robotgo.KeyTap("i", "alt", "command") arr := []string{"alt", "command"} robotgo.KeyTap("i", arr) + + robotgo.WriteAll("测试") + text, err := robotgo.ReadAll() + if err == nil { + fmt.Println(text) + } } ```