mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 09:48:59 +00:00
add more key example
This commit is contained in:
parent
dc0cd6ef67
commit
17c0de747f
1 changed files with 10 additions and 2 deletions
|
|
@ -42,7 +42,11 @@ func keyTap() {
|
|||
robotgo.KeyTap("a", "control")
|
||||
|
||||
// hide window
|
||||
robotgo.KeyTap("h", "command")
|
||||
err := robotgo.KeyTap("h", "command")
|
||||
if err == "" {
|
||||
fmt.Println("robotgo.KeyTap run error is nil.")
|
||||
}
|
||||
|
||||
robotgo.KeyTap("h", "command", 12)
|
||||
|
||||
// press "i", "alt", "command" Key combination
|
||||
|
|
@ -66,7 +70,11 @@ func keyToggle() {
|
|||
robotgo.KeyToggle("a", "down")
|
||||
robotgo.KeyToggle("a", "down", "alt")
|
||||
robotgo.KeyToggle("a", "down", "alt", "command")
|
||||
robotgo.KeyToggle("enter", "down")
|
||||
|
||||
err := robotgo.KeyToggle("enter", "down")
|
||||
if err == "" {
|
||||
fmt.Println("robotgo.KeyToggle run error is nil.")
|
||||
}
|
||||
}
|
||||
|
||||
func cilp() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue