Skip to content

Commit 99963bc

Browse files
committed
Refactor some keyboard C code to go
1 parent ed45411 commit 99963bc

File tree

7 files changed

+768
-890
lines changed

7 files changed

+768
-890
lines changed

examples/key/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ func keyTap() {
4949
fmt.Println("robotgo.KeyTap run error is: ", err)
5050
}
5151

52-
robotgo.KeyTap("h", "cmd", 12)
52+
robotgo.KeyTap("h", "cmd")
5353

5454
// press "i", "alt", "command" Key combination
5555
robotgo.KeyTap("i", "alt", "command")
56-
robotgo.KeyTap("i", "alt", "cmd", 11)
56+
robotgo.KeyTap("i", "alt", "cmd")
5757

5858
arr := []string{"alt", "cmd"}
5959
robotgo.KeyTap("i", arr)
60-
robotgo.KeyTap("i", arr, 12)
60+
robotgo.KeyTap("i", arr)
6161

6262
robotgo.KeyTap("i", "cmd", " alt", "shift")
6363

0 commit comments

Comments
 (0)