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
24eeb2765f
commit
ca56f9d5e6
@ -154,6 +154,7 @@ func main() {
|
|||||||
robotgo.KeyTap("enter")
|
robotgo.KeyTap("enter")
|
||||||
robotgo.TypeString("en")
|
robotgo.TypeString("en")
|
||||||
robotgo.KeyTap("i", "alt", "command")
|
robotgo.KeyTap("i", "alt", "command")
|
||||||
|
|
||||||
arr := []string{"alt", "command"}
|
arr := []string{"alt", "command"}
|
||||||
robotgo.KeyTap("i", arr)
|
robotgo.KeyTap("i", arr)
|
||||||
|
|
||||||
@ -179,7 +180,7 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
x, y := robotgo.GetMousePos()
|
x, y := robotgo.GetMousePos()
|
||||||
fmt.Println("pos: ", x, y)
|
fmt.Println("pos: ", x, y)
|
||||||
|
|
||||||
color := robotgo.GetPixelColor(100, 200)
|
color := robotgo.GetPixelColor(100, 200)
|
||||||
fmt.Println("color---- ", color)
|
fmt.Println("color---- ", color)
|
||||||
}
|
}
|
||||||
|
@ -152,6 +152,7 @@ func main() {
|
|||||||
robotgo.KeyTap("enter")
|
robotgo.KeyTap("enter")
|
||||||
robotgo.TypeString("en")
|
robotgo.TypeString("en")
|
||||||
robotgo.KeyTap("i", "alt", "command")
|
robotgo.KeyTap("i", "alt", "command")
|
||||||
|
|
||||||
arr := []string{"alt", "command"}
|
arr := []string{"alt", "command"}
|
||||||
robotgo.KeyTap("i", arr)
|
robotgo.KeyTap("i", arr)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user