diff --git a/README.md b/README.md index fca57ad..70c8560 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,7 @@ func main() { robotgo.KeyTap("enter") robotgo.TypeString("en") robotgo.KeyTap("i", "alt", "command") + arr := []string{"alt", "command"} robotgo.KeyTap("i", arr) @@ -179,7 +180,7 @@ import ( func main() { x, y := robotgo.GetMousePos() fmt.Println("pos: ", x, y) - + color := robotgo.GetPixelColor(100, 200) fmt.Println("color---- ", color) } diff --git a/README_zh.md b/README_zh.md index dbaf547..cda4fc6 100644 --- a/README_zh.md +++ b/README_zh.md @@ -152,6 +152,7 @@ func main() { robotgo.KeyTap("enter") robotgo.TypeString("en") robotgo.KeyTap("i", "alt", "command") + arr := []string{"alt", "command"} robotgo.KeyTap("i", arr)