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
364f192178
commit
24eeb2765f
@ -141,9 +141,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
robotgo.TypeString("Hello World")
|
robotgo.TypeStr("Hello World")
|
||||||
robotgo.TypeString("测试")
|
|
||||||
robotgo.TypeStr("测试")
|
robotgo.TypeStr("测试")
|
||||||
|
robotgo.TypeString("测试")
|
||||||
|
|
||||||
robotgo.TypeStr("山达尔星新星军团, galaxy. こんにちは世界.")
|
robotgo.TypeStr("山达尔星新星军团, galaxy. こんにちは世界.")
|
||||||
robotgo.Sleep(1)
|
robotgo.Sleep(1)
|
||||||
@ -179,6 +179,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)
|
||||||
}
|
}
|
||||||
|
@ -139,9 +139,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
robotgo.TypeString("Hello World")
|
robotgo.TypeStr("Hello World")
|
||||||
robotgo.TypeString("测试")
|
|
||||||
robotgo.TypeStr("测试")
|
robotgo.TypeStr("测试")
|
||||||
|
robotgo.TypeString("测试")
|
||||||
|
|
||||||
robotgo.TypeStr("山达尔星新星军团, galaxy. こんにちは世界.")
|
robotgo.TypeStr("山达尔星新星军团, galaxy. こんにちは世界.")
|
||||||
robotgo.Sleep(1)
|
robotgo.Sleep(1)
|
||||||
@ -177,6 +177,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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user