Update README.md

This commit is contained in:
vCaesar 2017-06-11 19:52:03 +08:00
parent 8d3d55860c
commit 3b176aa9f0
2 changed files with 15 additions and 1 deletions

View File

@ -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)
}
}
```

View File

@ -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)
}
}
```