diff --git a/README.md b/README.md index 0818c12..a3c0172 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,9 @@ func main() { robotgo.TypeString("Hello World") robotgo.KeyTap("enter") robotgo.TypeString("en") + robotgo.KeyTap("i", "alt", "command") + arr := []string{"alt", "command"} + robotgo.KeyTap("i", arr) } ``` diff --git a/README_zh.md b/README_zh.md index a28b49e..95c6f91 100644 --- a/README_zh.md +++ b/README_zh.md @@ -99,6 +99,9 @@ func main() { robotgo.TypeString("Hello World") robotgo.KeyTap("enter") robotgo.TypeString("en") + robotgo.KeyTap("i", "alt", "command") + arr := []string{"alt", "command"} + robotgo.KeyTap("i", arr) } ``` diff --git a/doc.md b/doc.md index 9b0422a..2e42b28 100644 --- a/doc.md +++ b/doc.md @@ -73,6 +73,15 @@ key - See keys. modifier (optional, string or array) - Accepts alt, command (win), control, and shift. +####Examples: + +```Go + robotgo.KeyTap("h", "command") + robotgo.KeyTap("i", "alt", "command") + arr := []string{"alt", "command"} + robotgo.KeyTap("i", arr) +``` + ###