From 0270af042b468ac9a10e62e70c0ea3c230d54f28 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Tue, 11 Dec 2018 10:53:03 -0400 Subject: [PATCH] update key example code --- examples/key/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/key/main.go b/examples/key/main.go index 2893b9d..7fa4c6b 100644 --- a/examples/key/main.go +++ b/examples/key/main.go @@ -39,6 +39,7 @@ func keyTap() { // press "enter" robotgo.KeyTap("enter") robotgo.KeyTap("a", "control") + // hide window robotgo.KeyTap("h", "command") robotgo.KeyTap("h", "command", 12) @@ -46,12 +47,14 @@ func keyTap() { // press "i", "alt", "command" Key combination robotgo.KeyTap("i", "alt", "command") robotgo.KeyTap("i", "alt", "command", 11) + arr := []string{"alt", "command"} robotgo.KeyTap("i", arr) robotgo.KeyTap("i", arr, 12) // close window robotgo.KeyTap("w", "command") + // minimize window robotgo.KeyTap("m", "command") robotgo.KeyTap("f1", "control")