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
743aca739d
commit
0f04eb3357
@ -82,7 +82,7 @@ import (
|
||||
|
||||
func main() {
|
||||
robotgo.ScrollMouse(10, "up")
|
||||
robogo.MouseClick("left",true)
|
||||
robotgo.MouseClick("left",true)
|
||||
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
|
||||
}
|
||||
```
|
||||
@ -122,6 +122,8 @@ import (
|
||||
func main() {
|
||||
x, y := robotgo.GetMousePos()
|
||||
Println("pos:", x, y)
|
||||
color := robotgo.GetPixelColor(100, 200)
|
||||
Println("color----", color)
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -79,7 +79,7 @@ import (
|
||||
|
||||
func main() {
|
||||
robotgo.ScrollMouse(10, "up")
|
||||
robogo.MouseClick("left",true)
|
||||
robotgo.MouseClick("left",true)
|
||||
robotgo.MoveMouseSmooth(100, 200, 1.0, 100.0)
|
||||
}
|
||||
```
|
||||
@ -119,6 +119,8 @@ import (
|
||||
func main() {
|
||||
x, y := robotgo.GetMousePos()
|
||||
Println("pos:", x, y)
|
||||
color := robotgo.GetPixelColor(100, 200)
|
||||
Println("color----", color)
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user