mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update README.md
This commit is contained in:
parent
8d3d55860c
commit
3b176aa9f0
@ -134,6 +134,7 @@ func main() {
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/go-vgo/robotgo"
|
||||
)
|
||||
|
||||
@ -144,6 +145,12 @@ func main() {
|
||||
robotgo.KeyTap("i", "alt", "command")
|
||||
arr := []string{"alt", "command"}
|
||||
robotgo.KeyTap("i", arr)
|
||||
|
||||
robotgo.WriteAll("测试")
|
||||
text, err := robotgo.ReadAll()
|
||||
if err == nil {
|
||||
fmt.Println(text)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -131,7 +131,8 @@ func main() {
|
||||
```Go
|
||||
package main
|
||||
|
||||
import (
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/go-vgo/robotgo"
|
||||
)
|
||||
|
||||
@ -142,6 +143,12 @@ func main() {
|
||||
robotgo.KeyTap("i", "alt", "command")
|
||||
arr := []string{"alt", "command"}
|
||||
robotgo.KeyTap("i", arr)
|
||||
|
||||
robotgo.WriteAll("测试")
|
||||
text, err := robotgo.ReadAll()
|
||||
if err == nil {
|
||||
fmt.Println(text)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user